Package org.topbraid.shacl.model
Interface SHRule
- All Superinterfaces:
org.apache.jena.graph.FrontsNode,org.apache.jena.rdf.model.RDFNode,org.apache.jena.rdf.model.Resource,SHResource
- All Known Implementing Classes:
SHRuleImpl
-
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 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
-
Method Details
-
getSubject
org.apache.jena.rdf.model.RDFNode getSubject()Gets the sh:subject (assuming this is a triple rule)- Returns:
- the subject of the triple rule
-
getPredicate
org.apache.jena.rdf.model.Resource getPredicate()Gets the sh:subject (assuming this is a triple rule)- Returns:
- the subject of the triple rule
-
getObject
org.apache.jena.rdf.model.RDFNode getObject()Gets the sh:subject (assuming this is a triple rule)- Returns:
- the subject of the triple rule
-
isJSRule
boolean isJSRule()Checks if this rule is an instance of sh:JSRule- Returns:
- true if this is a sh:JSRule
-
isSPARQLRule
boolean isSPARQLRule()Checks if this rule is an instance of sh:SPARQLRule- Returns:
- true if this is a sh:SPARQLRule
-
isTripleRule
boolean isTripleRule()Checks if this rule is an instance of sh:TripleRule- Returns:
- true if this is a sh:TripleRule
-