Class MatchRDFS<X,T>

java.lang.Object
org.apache.jena.rdfs.engine.CxtInf<X,T>
org.apache.jena.rdfs.engine.MatchRDFS<X,T>
All Implemented Interfaces:
Match<X,T>
Direct Known Subclasses:
InfFindQuad, InfFindTriple, MatchRDFSWrapper

public abstract class MatchRDFS<X,T> extends CxtInf<X,T> implements Match<X,T>
Match a 3-tuple, which might have wildcards, applying a fixed set of inference rules. This class is the core machinery of matching data using an RDFS schema. This is inference on the A-Box (the data) with respect to a fixed T-Box (the vocabulary, ontology).

This class implements:

  • rdfs:subClassOf (transitive)
  • rdfs:subPropertyOf (transitive)
  • rdfs:domain
  • rdfs:range
See Also:
  • Constructor Details

  • Method Details

    • getMapper

      public MapperX<X,T> getMapper()
      Description copied from interface: Match
      The mapper for reuse with wrappers. Note that this indirectly ties the Match interface to the Node realm: One can use the mapper to obtain X for e.g. RDF.Nodes.type.
      Specified by:
      getMapper in interface Match<X,T>
    • match

      public final Stream<T> match(X s, X p, X o)
      Specified by:
      match in interface Match<X,T>