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

    public interface SHRule
    extends SHResource
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.jena.rdf.model.RDFNode getObject()
      Gets the sh:subject (assuming this is a triple rule)
      org.apache.jena.rdf.model.Resource getPredicate()
      Gets the sh:subject (assuming this is a triple rule)
      org.apache.jena.rdf.model.RDFNode getSubject()
      Gets the sh:subject (assuming this is a triple rule)
      boolean isJSRule()
      Checks if this rule is an instance of sh:JSRule
      boolean isSPARQLRule()
      Checks if this rule is an instance of sh:SPARQLRule
      boolean isTripleRule()
      Checks if this rule is an instance of sh:TripleRule
      • 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
    • Method Detail

      • 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