- All Known Implementing Classes:
OntPersonalityImpl
public interface OntPersonality
A
Ontology RDF Model configuration object
that serves for the following purposes:
- Defines a set of permitted mappings from [interface] Class objects
to
OWL Ontology Object factorythat can generate instances of the facet represented by the Class. - Defines a set of builtin
OWL entities - Defines a set of OWL punnings
- Defines a set of reserved
Resources andPropertys, that cannot be used as OWL Entities
Jena Personality
with a generic type RDFNode.
Instances of this class must be unmodifiable and
the builder should be used to create instances with different settings.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA vocabulary of built-inONT Entities.static interfaceA punnings' vocabulary.static interfaceA vocabulary of reserved IRIs. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.enhanced.Personality<org.apache.jena.rdf.model.RDFNode>Represents the givenOntPersonalityconfiguration as aJena Personalitywith a generic typeRDFNode.copy()Makes a full copy of this configuration.Gets system resources for the specified type.Returns a builtins vocabulary.Returns the config.getName()Returns personality name, language profile.getObjectFactory(Class<? extends org.apache.jena.rdf.model.RDFNode> type) Gets the implementation-factory for the specified object type, returningnullif there isn't one available.Returns a punnings' vocabulary.Returns a reserved vocabulary.booleanAnswers if a type is supported.types()Lists all object-types, which are supported by this personality configuration.Lists all object-types encapsulated by this config, that extend the specified object-type.
-
Method Details
-
asJenaPersonality
static org.apache.jena.enhanced.Personality<org.apache.jena.rdf.model.RDFNode> asJenaPersonality(OntPersonality p) throws OntJenaException Represents the givenOntPersonalityconfiguration as aJena Personalitywith a generic typeRDFNode.- Parameters:
p-OntPersonality- Returns:
Personality- Throws:
OntJenaException- in case the conversion is not possible- See Also:
-
types
Lists all object-types, which are supported by this personality configuration. Each of the class-types are associated with eitherEnhNodeFactory(if it isOntObjecttype) or withImplementation(if it is a standard jena resource object).- Returns:
- Stream of
Classes, subclasses ofRDFNode.
-
getObjectFactory
Gets the implementation-factory for the specified object type, returningnullif there isn't one available.- Parameters:
type- a class-type ofOntObject- Returns:
EnhNodeFactorya factory to create an instance of the given type, notnull
-
supports
Answers if a type is supported.- Parameters:
type-Class- Returns:
boolean
-
copy
OntPersonality copy()Makes a full copy of this configuration.- Returns:
OntPersonalitya new instance identical to this
-
getName
String getName()Returns personality name, language profile.- Returns:
- String
-
getConfig
OntConfig getConfig()Returns the config. Config holds various settings to control model behaviour.- Returns:
OntConfig
-
getPunnings
OntPersonality.Punnings getPunnings()Returns a punnings' vocabulary.- Returns:
OntPersonality.Punnings
-
getBuiltins
OntPersonality.Builtins getBuiltins()Returns a builtins vocabulary.- Returns:
OntPersonality.Builtins
-
getReserved
OntPersonality.Reserved getReserved()Returns a reserved vocabulary.- Returns:
OntPersonality.Reserved
-
forbidden
Gets system resources for the specified type. An entity of the giventypecannot be created with any of the URIs, which this method returns.- Parameters:
type-OntObject- Returns:
- Set of URIs
-
types
Lists all object-types encapsulated by this config, that extend the specified object-type.
-