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
  • Field Summary

    Fields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl

    factory, rdfNodeFactory

    Fields inherited from class org.apache.jena.enhanced.EnhNode

    enhGraph, node
  • Constructor Summary

    Constructors
    Constructor
    Description
    SHRuleImpl(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph graph)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.rdf.model.RDFNode
    Gets the sh:subject (assuming this is a triple rule)
    org.apache.jena.rdf.model.Resource
    Gets the sh:subject (assuming this is a triple rule)
    org.apache.jena.rdf.model.RDFNode
    Gets the sh:subject (assuming this is a triple rule)
    boolean
    Checks if this rule is an instance of sh:JSRule
    boolean
    Checks if this rule is an instance of sh:SPARQLRule
    boolean
    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.graph.FrontsNode

    asNode

    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
  • 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: SHRule
      Gets the sh:subject (assuming this is a triple rule)
      Specified by:
      getSubject in interface SHRule
      Returns:
      the subject of the triple rule
    • getPredicate

      public org.apache.jena.rdf.model.Resource getPredicate()
      Description copied from interface: SHRule
      Gets the sh:subject (assuming this is a triple rule)
      Specified by:
      getPredicate in interface SHRule
      Returns:
      the subject of the triple rule
    • getObject

      public org.apache.jena.rdf.model.RDFNode getObject()
      Description copied from interface: SHRule
      Gets the sh:subject (assuming this is a triple rule)
      Specified by:
      getObject in interface SHRule
      Returns:
      the subject of the triple rule
    • isJSRule

      public boolean isJSRule()
      Description copied from interface: SHRule
      Checks if this rule is an instance of sh:JSRule
      Specified by:
      isJSRule in interface SHRule
      Returns:
      true if this is a sh:JSRule
    • isSPARQLRule

      public boolean isSPARQLRule()
      Description copied from interface: SHRule
      Checks if this rule is an instance of sh:SPARQLRule
      Specified by:
      isSPARQLRule in interface SHRule
      Returns:
      true if this is a sh:SPARQLRule
    • isTripleRule

      public boolean isTripleRule()
      Description copied from interface: SHRule
      Checks if this rule is an instance of sh:TripleRule
      Specified by:
      isTripleRule in interface SHRule
      Returns:
      true if this is a sh:TripleRule