Class PropertyNameMappingImpl_SingleMatchToURI

java.lang.Object
se.liu.ida.hefquin.engine.wrappers.lpg.conf.impl.PropertyNameMappingImpl_SingleMatchToURI
All Implemented Interfaces:
PropertyNameMapping

public class PropertyNameMappingImpl_SingleMatchToURI extends Object implements PropertyNameMapping
  • Field Details

    • propertyName

      protected final String propertyName
    • node

      protected final org.apache.jena.graph.Node node
  • Constructor Details

    • PropertyNameMappingImpl_SingleMatchToURI

      public PropertyNameMappingImpl_SingleMatchToURI(String propertyName, String iri)
  • Method Details

    • map

      public org.apache.jena.graph.Node map(String propertyName)
      Description copied from interface: PropertyNameMapping
      Returns the IRI (in the form of a Jena Node object) that is the result of applying this property name mapping to the given property name.
      Specified by:
      map in interface PropertyNameMapping
    • unmap

      public String unmap(org.apache.jena.graph.Node node)
      Description copied from interface: PropertyNameMapping
      Returns the String that corresponds to the given RDF term. It applies the inverse of this property mapping to the given RDF term (which is assumed to be an IRI) in order to obtain the corresponding String.
      Specified by:
      unmap in interface PropertyNameMapping
    • isPossibleResult

      public boolean isPossibleResult(org.apache.jena.graph.Node node)
      Description copied from interface: PropertyNameMapping
      Check if the given RDF term is in the image of this property mapping and, thus, may be one of the RDF terms returned by the PropertyNameMapping.map(String) function for some String.
      Specified by:
      isPossibleResult in interface PropertyNameMapping