Class SHPropertyShapeImpl

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
All Implemented Interfaces:
org.apache.jena.graph.FrontsNode, org.apache.jena.rdf.model.RDFNode, org.apache.jena.rdf.model.Resource, SHParameterizableInstance, SHPropertyShape, SHResource, SHShape
Direct Known Subclasses:
SHParameterImpl

public class SHPropertyShapeImpl extends SHShapeImpl implements SHPropertyShape
  • 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
    SHPropertyShapeImpl(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph graph)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.rdf.model.Resource
    Gets the declared sh:class or sh:datatype (if any).
    org.apache.jena.rdf.model.Resource
    Returns either sh:NodeShape or sh:PropertyShape.
     
    Gets the sh:description, if it exists.
     
     
    Gets the sh:name, if it exists.
    Gets the sh:order of this
    org.apache.jena.rdf.model.Property
    Gets the property represented by the sh:path, assuming it's a IRI.
    Gets the variable name associated with this.
     

    Methods inherited from class org.topbraid.shacl.model.impl.SHShapeImpl

    getPath, getPropertyShapes, getPropertyShapes, getRules, getSeverity, hasTargetNode, isDeactivated, isPropertyShape

    Methods inherited from class org.topbraid.shacl.model.impl.SHParameterizableInstanceImpl

    addBindings, getParameterizable, getParameterMapByVarNames

    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, 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

    Methods inherited from interface org.topbraid.shacl.model.SHShape

    getPath, getPropertyShapes, getPropertyShapes, getRules, getSeverity, hasTargetNode, isDeactivated, isPropertyShape
  • Constructor Details

    • SHPropertyShapeImpl

      public SHPropertyShapeImpl(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph graph)
  • Method Details

    • getClassOrDatatype

      public org.apache.jena.rdf.model.Resource getClassOrDatatype()
      Description copied from interface: SHPropertyShape
      Gets the declared sh:class or sh:datatype (if any). If none is declared, falls back to sh:nodeKind, e.g. returning rdfs:Resource if sh:nodeKind is sh:IRI.
      Specified by:
      getClassOrDatatype in interface SHPropertyShape
      Returns:
      the value type or data type
    • getContext

      public org.apache.jena.rdf.model.Resource getContext()
      Description copied from interface: SHShape
      Returns either sh:NodeShape or sh:PropertyShape.
      Specified by:
      getContext in interface SHShape
      Returns:
      the context
    • getCountDisplayString

      public String getCountDisplayString()
      Specified by:
      getCountDisplayString in interface SHPropertyShape
    • getDescription

      public String getDescription()
      Description copied from interface: SHPropertyShape
      Gets the sh:description, if it exists.
      Specified by:
      getDescription in interface SHPropertyShape
      Returns:
      the description or null
    • getMaxCount

      public Integer getMaxCount()
      Specified by:
      getMaxCount in interface SHPropertyShape
    • getMinCount

      public Integer getMinCount()
      Specified by:
      getMinCount in interface SHPropertyShape
    • getName

      public String getName()
      Description copied from interface: SHPropertyShape
      Gets the sh:name, if it exists.
      Specified by:
      getName in interface SHPropertyShape
      Returns:
      the name or null
    • getOrder

      public Integer getOrder()
      Description copied from interface: SHPropertyShape
      Gets the sh:order of this
      Specified by:
      getOrder in interface SHPropertyShape
      Returns:
      the order or null no sh:order is given
    • getPredicate

      public org.apache.jena.rdf.model.Property getPredicate()
      Description copied from interface: SHPropertyShape
      Gets the property represented by the sh:path, assuming it's a IRI. Returns null if it's a property path (blank node).
      Specified by:
      getPredicate in interface SHPropertyShape
      Returns:
      the predicate or null
    • getVarName

      public String getVarName()
      Description copied from interface: SHPropertyShape
      Gets the variable name associated with this. This is the local name of the predicate, i.e. implementations can assume that this value is not null iff getPredicate() != null.
      Specified by:
      getVarName in interface SHPropertyShape
      Returns:
      the variable name
    • toString

      public String toString()
      Specified by:
      toString in interface org.apache.jena.rdf.model.RDFNode
      Specified by:
      toString in interface org.apache.jena.rdf.model.Resource
      Overrides:
      toString in class org.apache.jena.rdf.model.impl.ResourceImpl