Package org.aksw.facete.v3.bgp.utils
Class PathAccessorImpl
java.lang.Object
org.aksw.facete.v3.bgp.utils.PathAccessorImpl
- All Implemented Interfaces:
PathAccessor<BgpNode>,PathAccessorRdf<BgpNode>,PathAccessorSimple<BgpNode>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionA model which may contain a set of paths; only needed for tryMapToPath which tests whether an RDF term 'x' denotes a path object is the given model.PathAccessorImpl(org.apache.jena.rdf.model.Model model) PathAccessorImpl(org.apache.jena.rdf.model.RDFNode rdfNode) Ctor version that in the future may resolve paths only if they are connected to the given resource -
Method Summary
Modifier and TypeMethodDescriptiongetPredicate(BgpNode path) getReachingRelation(BgpNode path) booleantryMapToPath(org.apache.jena.graph.Node node) Try to map to expr to a path
-
Field Details
-
model
protected org.apache.jena.rdf.model.Model model
-
-
Constructor Details
-
PathAccessorImpl
public PathAccessorImpl()A model which may contain a set of paths; only needed for tryMapToPath which tests whether an RDF term 'x' denotes a path object is the given model. The test is based on the existence of a 'x' type BgpNode triple. -
PathAccessorImpl
public PathAccessorImpl(org.apache.jena.rdf.model.RDFNode rdfNode) Ctor version that in the future may resolve paths only if they are connected to the given resource- Parameters:
rdfNode-
-
PathAccessorImpl
public PathAccessorImpl(org.apache.jena.rdf.model.Model model)
-
-
Method Details
-
getPathClass
- Specified by:
getPathClassin interfacePathAccessor<BgpNode>
-
getParent
- Specified by:
getParentin interfacePathAccessorSimple<BgpNode>
-
getReachingRelation
- Specified by:
getReachingRelationin interfacePathAccessorRdf<BgpNode>
-
isReverse
- Specified by:
isReversein interfacePathAccessorRdf<BgpNode>
-
getPredicate
- Specified by:
getPredicatein interfacePathAccessorRdf<BgpNode>
-
getAlias
- Specified by:
getAliasin interfacePathAccessorRdf<BgpNode>
-
tryMapToPath
Description copied from interface:PathAccessorTry to map to expr to a path- Specified by:
tryMapToPathin interfacePathAccessor<BgpNode>
-