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
public class SHRuleImpl extends SHResourceImpl implements SHRule
-
-
Constructor Summary
Constructors Constructor Description SHRuleImpl(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.rdf.model.RDFNodegetObject()Gets the sh:subject (assuming this is a triple rule)org.apache.jena.rdf.model.ResourcegetPredicate()Gets the sh:subject (assuming this is a triple rule)org.apache.jena.rdf.model.RDFNodegetSubject()Gets the sh:subject (assuming this is a triple rule)booleanisJSRule()Checks if this rule is an instance of sh:JSRulebooleanisSPARQLRule()Checks if this rule is an instance of sh:SPARQLRulebooleanisTripleRule()Checks if this rule is an instance of sh:TripleRule-
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, toString, visitWith
-
Methods inherited from class org.apache.jena.enhanced.EnhNode
as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAs
-
Methods inherited from class org.apache.jena.enhanced.Polymorphic
addView, alreadyHasView, asInternal, supports
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWith
-
Methods 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
-
-
-
-
Method Detail
-
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
-
-