public abstract class DescriptorOntology extends ModelDocument
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS
The Constant ALIAS.
|
static String |
DEFINITION
The Constant DEFINITION.
|
static String |
NAME
The Constant NAME.
|
_trace_level, COMMENT, DEBUG, DESCRIPTION, DOMAIN, INFO, LABEL, MEMBER, modelURI, NONE, RANGE, SUB_CLASS_OF, SUB_PROPERTY_OF, VERBOSE| Modifier | Constructor and Description |
|---|---|
protected |
DescriptorOntology(String modelURI)
Instantiates a new descriptor ontology.
|
protected |
DescriptorOntology(String modelURI,
String language)
Instantiates a new descriptor ontology.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
categories()
Method to return all the categories of descriptors in a given set.
|
Map<String,String> |
categoryDetails(String categoryURI,
String language)
Loads descriptor category-specific details.
|
Map<String,String> |
definition(Map<String,String> details,
String descriptorURI,
String language)
This is a variant of the ModelDocument details() method, which uses SKOS
prefLabel instead of the rdfs:label property and the SKOS definition
instead of the rdfs:comment and rdfs:description properties.
|
Map<String,String> |
descriptorDetails(String descriptorURI,
String language)
Loads descriptor descriptor specific details.
|
Map<String,String> |
descriptors(String categoryURI)
Loads Map of descriptors from a given category.
|
_load, classDetails, classes, collections, dumpModel, dumpModel, dumpModel, dumpModel, dumpModel, dumpSchema, dumpSchema, lookup, lookup, members, parser, properties, propertyDetails, setLanguage, subjectsOfType, trace, translatedModel, URIpublic static final String NAME
public static final String ALIAS
public static final String DEFINITION
protected DescriptorOntology(String modelURI) throws IOException, ModelException
modelURI - the model uriIOException - Signals that an I/O exception has occurred.ModelException - the model exceptionprotected DescriptorOntology(String modelURI, String language) throws IOException, ModelException
modelURI - the model urilanguage - the languageIOException - Signals that an I/O exception has occurred.ModelException - the model exceptionpublic Map<String,String> definition(Map<String,String> details, String descriptorURI, String language) throws RDFParserException
details - is a pre-existing target Map for loadingdescriptorURI - the descriptor urilanguage - ISO639-2 two or three character language code. Defaults
to English if not given.RDFParserException - the RDF parser exceptionpublic Map<String,String> categories() throws RDFParserException
RDFParserException - the RDF parser exceptionpublic Map<String,String> categoryDetails(String categoryURI, String language) throws RDFParserException
categoryURI - the category urilanguage - the languageRDFParserException - the RDF parser exceptionpublic Map<String,String> descriptors(String categoryURI) throws RDFParserException
categoryURI - the category uriRDFParserException - the RDF parser exceptionpublic Map<String,String> descriptorDetails(String descriptorURI, String language) throws RDFParserException
descriptorURI - - URI of the descriptorlanguage - - ISORDFParserException - the RDF parser exceptionCopyright © 2016. All rights reserved.