- 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 factory
that 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
Resource
s andProperty
s, 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
Modifier and TypeInterfaceDescriptionstatic interface
A vocabulary of built-inONT Entities
.static interface
A punnings' vocabulary.static interface
A vocabulary of reserved IRIs. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.enhanced.Personality<org.apache.jena.rdf.model.RDFNode>
Represents the givenOntPersonality
configuration as aJena Personality
with 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, returningnull
if there isn't one available.Returns a punnings' vocabulary.Returns a reserved vocabulary.boolean
Answers 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 givenOntPersonality
configuration as aJena Personality
with 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 isOntObject
type) or withImplementation
(if it is a standard jena resource object).- Returns:
- Stream of
Class
es, subclasses ofRDFNode
.
-
getObjectFactory
Gets the implementation-factory for the specified object type, returningnull
if there isn't one available.- Parameters:
type
- a class-type ofOntObject
- Returns:
EnhNodeFactory
a 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:
OntPersonality
a 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 giventype
cannot 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.
-