Interface HasTemplate

All Superinterfaces:
org.apache.jena.graph.FrontsNode, org.apache.jena.rdf.model.RDFNode, org.apache.jena.rdf.model.Resource

public interface HasTemplate extends org.apache.jena.rdf.model.Resource
A class to attache a template string to an RDF resource. In the case of shacl, the template may be specified on a 'view' resource that references a shacl shape. For convenience it may also be viable to use this property on a shacl shape directly.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    getTemplate(String datatype)
    Get a template that matches the given datatype.
    Set<org.apache.jena.graph.Node>
     

    Methods inherited from interface org.apache.jena.graph.FrontsNode

    asNode

    Methods inherited from interface org.apache.jena.rdf.model.RDFNode

    as, asLiteral, asResource, asStatementTerm, canAs, getModel, isAnon, isLiteral, isResource, isStatementTerm, 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, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
  • Method Details

    • getTemplateNodes

      Set<org.apache.jena.graph.Node> getTemplateNodes()
    • getTemplate

      default String getTemplate(String datatype)
      Get a template that matches the given datatype. Raises an exception if there is more than one match.