Package org.topbraid.shacl.model.impl
Class SHRuleImpl
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.topbraid.shacl.model.impl.SHResourceImpl
org.topbraid.shacl.model.impl.SHRuleImpl
- All Implemented Interfaces:
org.apache.jena.graph.FrontsNode,org.apache.jena.rdf.model.RDFNode,org.apache.jena.rdf.model.Resource,SHResource,SHRule
-
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
ConstructorsConstructorDescriptionSHRuleImpl(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph graph) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.RDFNodeGets the sh:subject (assuming this is a triple rule)org.apache.jena.rdf.model.ResourceGets the sh:subject (assuming this is a triple rule)org.apache.jena.rdf.model.RDFNodeGets the sh:subject (assuming this is a triple rule)booleanisJSRule()Checks if this rule is an instance of sh:JSRulebooleanChecks if this rule is an instance of sh:SPARQLRulebooleanChecks if this rule is an instance of sh:TripleRuleMethods 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, toString, 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, toString
-
Constructor Details
-
SHRuleImpl
public SHRuleImpl(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph graph)
-
-
Method Details
-
getSubject
public org.apache.jena.rdf.model.RDFNode getSubject()Description copied from interface:SHRuleGets the sh:subject (assuming this is a triple rule)- Specified by:
getSubjectin interfaceSHRule- Returns:
- the subject of the triple rule
-
getPredicate
public org.apache.jena.rdf.model.Resource getPredicate()Description copied from interface:SHRuleGets the sh:subject (assuming this is a triple rule)- Specified by:
getPredicatein interfaceSHRule- Returns:
- the subject of the triple rule
-
getObject
public org.apache.jena.rdf.model.RDFNode getObject()Description copied from interface:SHRuleGets the sh:subject (assuming this is a triple rule) -
isJSRule
public boolean isJSRule()Description copied from interface:SHRuleChecks if this rule is an instance of sh:JSRule -
isSPARQLRule
public boolean isSPARQLRule()Description copied from interface:SHRuleChecks if this rule is an instance of sh:SPARQLRule- Specified by:
isSPARQLRulein interfaceSHRule- Returns:
- true if this is a sh:SPARQLRule
-
isTripleRule
public boolean isTripleRule()Description copied from interface:SHRuleChecks if this rule is an instance of sh:TripleRule- Specified by:
isTripleRulein interfaceSHRule- Returns:
- true if this is a sh:TripleRule
-