Class SHFactory


  • public class SHFactory
    extends Object
    • Constructor Detail

      • SHFactory

        public SHFactory()
    • Method Detail

      • ensureInited

        public static void ensureInited()
      • asConstraintComponent

        public static SHConstraintComponent asConstraintComponent​(org.apache.jena.rdf.model.RDFNode resource)
      • asJSConstraint

        public static SHJSConstraint asJSConstraint​(org.apache.jena.rdf.model.RDFNode node)
      • asSPARQLFunction

        public static SHSPARQLFunction asSPARQLFunction​(org.apache.jena.rdf.model.RDFNode resource)
      • asParameter

        public static SHParameter asParameter​(org.apache.jena.rdf.model.RDFNode resource)
      • asParameterizable

        public static SHParameterizable asParameterizable​(org.apache.jena.rdf.model.RDFNode resource)
      • asPropertyShape

        public static SHPropertyShape asPropertyShape​(org.apache.jena.rdf.model.RDFNode node)
      • asNodeShape

        public static SHNodeShape asNodeShape​(org.apache.jena.rdf.model.RDFNode node)
      • asSPARQLConstraint

        public static SHSPARQLConstraint asSPARQLConstraint​(org.apache.jena.rdf.model.RDFNode node)
      • asSPARQLTarget

        public static SHSPARQLTarget asSPARQLTarget​(org.apache.jena.rdf.model.RDFNode node)
      • asShape

        public static SHShape asShape​(org.apache.jena.rdf.model.RDFNode node)
      • asParameterizableTarget

        public static SHParameterizableTarget asParameterizableTarget​(org.apache.jena.rdf.model.RDFNode node)
      • isJSConstraint

        public static boolean isJSConstraint​(org.apache.jena.rdf.model.RDFNode node)
      • isJSTarget

        public static boolean isJSTarget​(org.apache.jena.rdf.model.RDFNode node)
      • isSPARQLConstraint

        public static boolean isSPARQLConstraint​(org.apache.jena.rdf.model.RDFNode node)
      • isSPARQLTarget

        public static boolean isSPARQLTarget​(org.apache.jena.rdf.model.RDFNode node)
      • isNodeShape

        public static boolean isNodeShape​(org.apache.jena.rdf.model.RDFNode node)
        Checks if a given node is a NodeShape. This is just an approximation based on a couple of hard-coded properties.
        Parameters:
        node - the node to test
        Returns:
        true if node is a NodeShape
      • isParameterizableConstraint

        public static boolean isParameterizableConstraint​(org.apache.jena.rdf.model.RDFNode node)
      • isParameter

        public static boolean isParameter​(org.apache.jena.rdf.model.Resource resource)
      • isParameterizableInstance

        public static boolean isParameterizableInstance​(org.apache.jena.rdf.model.RDFNode node)
        Checks if a given RDFNode represents a parameterizable instance. It either needs to be an instance of an instance of sh:Parameterizable, or be a typeless node that has an incoming edge via a property that has a declared sh:defaultType, such as sh:property.
        Parameters:
        node - the node to check
        Returns:
        true if node is a parameterizable instance
      • isPropertyShape

        public static boolean isPropertyShape​(org.apache.jena.rdf.model.Resource resource)