Class TemplateImpl

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.apache.jena.ontology.impl.OntResourceImpl
org.apache.jena.ontology.impl.OntClassImpl
com.atomgraph.processor.model.impl.TemplateImpl
All Implemented Interfaces:
Template, org.apache.jena.graph.FrontsNode, org.apache.jena.ontology.OntClass, org.apache.jena.ontology.OntResource, org.apache.jena.rdf.model.RDFNode, org.apache.jena.rdf.model.Resource

public class TemplateImpl extends org.apache.jena.ontology.impl.OntClassImpl implements Template
Author:
Martynas Jusevičius <martynas@atomgraph.com>
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.jena.ontology.impl.OntResourceImpl

    org.apache.jena.ontology.impl.OntResourceImpl.LangTagFilter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.apache.jena.enhanced.Implementation
     

    Fields inherited from class org.apache.jena.ontology.impl.OntResourceImpl

    KNOWN_LANGUAGES

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

    rdfNodeFactory

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

    enhGraph, node

    Fields inherited from interface com.atomgraph.processor.model.Template

    COMPARATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
    TemplateImpl(org.apache.jena.graph.Node n, org.apache.jena.enhanced.EnhGraph g)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.CacheControl
    Returns Cache-Control HTTP header value, specified on an ontology class with given property.
     
     
    protected List<Locale>
    getLanguages(Template template, org.apache.jena.rdf.model.Property property)
     
    org.apache.jena.rdf.model.Resource
     
    Map<org.apache.jena.rdf.model.Property,Parameter>
     
    org.glassfish.jersey.uri.UriTemplate
     
     
    Map<org.apache.jena.rdf.model.Property,Parameter>
     
     
    org.apache.jena.rdf.model.Resource
     
    getSelfOrSuperWithProperty(org.apache.jena.rdf.model.Property property)
    Returns this template or the first template in the super-template chain that has the specified property.
     
    protected List<Template>
     
    org.apache.jena.rdf.model.Resource
     
     

    Methods inherited from class org.apache.jena.ontology.impl.OntClassImpl

    addDisjointWith, addEquivalentClass, addSubClass, addSuperClass, asComplementClass, asEnumeratedClass, asIntersectionClass, asRestriction, asUnionClass, canProveSuperClass, convertToComplementClass, convertToEnumeratedClass, convertToIntersectionClass, convertToRestriction, convertToUnionClass, createIndividual, createIndividual, dropIndividual, getDisjointWith, getEquivalentClass, getSubClass, getSuperClass, hasDeclaredProperty, hasEquivalentClass, hasSubClass, hasSubClass, hasSubClass, hasSuperClass, hasSuperClass, hasSuperClass, hasSuperClassDirect, isComplementClass, isDisjointWith, isEnumeratedClass, isHierarchyRoot, isIntersectionClass, isRestriction, isUnionClass, listAllProperties, listDeclaredProperties, listDeclaredProperties, listDisjointWith, listEquivalentClasses, listInstances, listInstances, listSubClasses, listSubClasses, listSuperClasses, listSuperClasses, removeDisjointWith, removeEquivalentClass, removeSubClass, removeSuperClass, setDisjointWith, setEquivalentClass, setSubClass, setSuperClass, testDomain

    Methods inherited from class org.apache.jena.ontology.impl.OntResourceImpl

    addComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addListPropertyValue, addPropertyValue, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, checkProfile, convertToType, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getOntModel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasPropertyValue, hasRDFType, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasType, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isDefinedBy, isDifferentFrom, isIndividual, isObjectProperty, isOntLanguageTerm, isOntology, isProperty, isSameAs, langTagMatch, listAs, listComments, listDifferentFrom, listDirectPropertyValues, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, objectAs, objectAsInt, objectAsProperty, objectAsResource, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removePropertyValue, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, selectLang, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfo

    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.ontology.OntClass

    addDisjointWith, addEquivalentClass, addSubClass, addSuperClass, asComplementClass, asEnumeratedClass, asIntersectionClass, asRestriction, asUnionClass, convertToComplementClass, convertToEnumeratedClass, convertToIntersectionClass, convertToRestriction, convertToUnionClass, createIndividual, createIndividual, dropIndividual, getDisjointWith, getEquivalentClass, getSubClass, getSuperClass, hasDeclaredProperty, hasEquivalentClass, hasSubClass, hasSubClass, hasSubClass, hasSuperClass, hasSuperClass, hasSuperClass, isComplementClass, isDisjointWith, isEnumeratedClass, isHierarchyRoot, isIntersectionClass, isRestriction, isUnionClass, listDeclaredProperties, listDeclaredProperties, listDisjointWith, listEquivalentClasses, listInstances, listInstances, listSubClasses, listSubClasses, listSuperClasses, listSuperClasses, removeDisjointWith, removeEquivalentClass, removeSubClass, removeSuperClass, setDisjointWith, setEquivalentClass, setSubClass, setSuperClass

    Methods inherited from interface org.apache.jena.ontology.OntResource

    addComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getOntModel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isDefinedBy, isDifferentFrom, isIndividual, isObjectProperty, isOntLanguageTerm, isOntology, isProperty, isSameAs, listComments, listDifferentFrom, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfo

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

    • factory

      public static org.apache.jena.enhanced.Implementation factory
  • Constructor Details

    • TemplateImpl

      public TemplateImpl(org.apache.jena.graph.Node n, org.apache.jena.enhanced.EnhGraph g)
  • Method Details

    • getMatch

      public org.glassfish.jersey.uri.UriTemplate getMatch()
      Specified by:
      getMatch in interface Template
    • getFragmentTemplate

      public String getFragmentTemplate()
      Specified by:
      getFragmentTemplate in interface Template
    • getQuery

      public org.apache.jena.rdf.model.Resource getQuery()
      Specified by:
      getQuery in interface Template
    • getUpdate

      public org.apache.jena.rdf.model.Resource getUpdate()
      Specified by:
      getUpdate in interface Template
    • getPriority

      public Double getPriority()
      Specified by:
      getPriority in interface Template
    • getParameters

      public Map<org.apache.jena.rdf.model.Property,Parameter> getParameters()
      Specified by:
      getParameters in interface Template
    • getLocalParameters

      public Map<org.apache.jena.rdf.model.Property,Parameter> getLocalParameters()
      Specified by:
      getLocalParameters in interface Template
    • getParameterMap

      public Map<String,Parameter> getParameterMap()
      Specified by:
      getParameterMap in interface Template
    • getLanguages

      public List<Locale> getLanguages()
      Specified by:
      getLanguages in interface Template
    • getLanguages

      protected List<Locale> getLanguages(Template template, org.apache.jena.rdf.model.Property property)
    • getLoadClass

      public org.apache.jena.rdf.model.Resource getLoadClass()
      Specified by:
      getLoadClass in interface Template
    • getCacheControl

      public javax.ws.rs.core.CacheControl getCacheControl()
      Returns Cache-Control HTTP header value, specified on an ontology class with given property.
      Specified by:
      getCacheControl in interface Template
      Returns:
      CacheControl instance or null
    • getSuperTemplates

      public List<Template> getSuperTemplates()
      Specified by:
      getSuperTemplates in interface Template
    • getSuperTemplates

      protected List<Template> getSuperTemplates(Template template)
    • getSelfOrSuperWithProperty

      public Template getSelfOrSuperWithProperty(org.apache.jena.rdf.model.Property property)
      Returns this template or the first template in the super-template chain that has the specified property.
      Parameters:
      property - property the template needs to have
      Returns:
    • 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