Package org.aksw.facete.v3.bgp.impl
Class BgpNodeImpl
java.lang.Object
org.apache.jena.enhanced.Polymorphic<org.apache.jena.rdf.model.RDFNode>
org.apache.jena.enhanced.EnhNode
org.apache.jena.rdf.model.impl.ResourceImpl
org.aksw.facete.v3.bgp.impl.BgpNodeImpl
- All Implemented Interfaces:
TraversalNode<BgpNode,,BgpDirNode, BgpMultiNode> BgpNode,org.apache.jena.graph.FrontsNode,org.apache.jena.rdf.model.RDFNode,org.apache.jena.rdf.model.Resource
Notes for model revision:
- Right now we assume that the parent is reached by traversing 'one' in reverse direction
This will break once we add the conjunctive constraint features to multinode.
- Author:
- Claus Stadler, Dec 27, 2018
-
Field Summary
Fields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
factory, rdfNodeFactoryFields inherited from class org.apache.jena.enhanced.EnhNode
enhGraph, node -
Constructor Summary
ConstructorsConstructorDescriptionBgpNodeImpl(org.apache.jena.graph.Node n, org.apache.jena.enhanced.EnhGraph m) -
Method Summary
Modifier and TypeMethodDescriptionalias()as(org.apache.jena.sparql.core.Var var) bwd()Map<org.apache.jena.rdf.model.Resource,BgpMultiNode> chRoot()Map<org.apache.jena.rdf.model.Resource,BgpMultiNode> createMap(org.apache.jena.rdf.model.Property p) fwd()Map<org.apache.jena.rdf.model.Resource,BgpMultiNode> parent()root()toString()static voidturnParentToChild(BgpNode start) ISSUE What if a reaching predicate already exists as a child (fwd or bwd) predicate? { distribution: { on: { } }Methods inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, commit, getId, getLocalName, getModel, getModelCom, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, mustHaveModel, removeAll, removeProperties, visitWithMethods inherited from class org.apache.jena.enhanced.EnhNode
as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAsMethods inherited from class org.apache.jena.enhanced.Polymorphic
addView, alreadyHasView, asInternal, supportsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.graph.FrontsNode
asNodeMethods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWithMethods inherited from interface org.apache.jena.rdf.model.Resource
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties
-
Constructor Details
-
BgpNodeImpl
public BgpNodeImpl(org.apache.jena.graph.Node n, org.apache.jena.enhanced.EnhGraph m)
-
-
Method Details
-
createMap
public Map<org.apache.jena.rdf.model.Resource,BgpMultiNode> createMap(org.apache.jena.rdf.model.Property p) -
fwdMultiNodes
- Specified by:
fwdMultiNodesin interfaceBgpNode
-
bwdMultiNodes
- Specified by:
bwdMultiNodesin interfaceBgpNode
-
fwd
- Specified by:
fwdin interfaceBgpNode- Specified by:
fwdin interfaceTraversalNode<BgpNode,BgpDirNode, BgpMultiNode>
-
bwd
- Specified by:
bwdin interfaceBgpNode- Specified by:
bwdin interfaceTraversalNode<BgpNode,BgpDirNode, BgpMultiNode>
-
as
-
alias
-
root
-
as
-
parent
-
chRoot
-
turnParentToChild
ISSUE What if a reaching predicate already exists as a child (fwd or bwd) predicate? { distribution: { on: { } }- Parameters:
start-
-
toString
- Specified by:
toStringin interfaceorg.apache.jena.rdf.model.RDFNode- Specified by:
toStringin interfaceorg.apache.jena.rdf.model.Resource- Overrides:
toStringin classorg.apache.jena.rdf.model.impl.ResourceImpl
-