public class NamespaceMapperJena extends org.apache.jena.rdf.listeners.StatementListener implements NamespaceMapper
| Constructor and Description |
|---|
NamespaceMapperJena(org.apache.jena.ontology.OntModel dataModel,
org.apache.jena.ontology.OntModel metadataModel,
String namespaceForNamespaceObjects) |
| Modifier and Type | Method and Description |
|---|---|
void |
addedStatement(org.apache.jena.rdf.model.Statement s) |
String |
getNamespaceForPrefix(String prefix)
Returns the full namespace URI represented by a given
abbreviation, or null if not found.
|
List<String> |
getPrefixesForNamespace(String namespace)
Returns a list of abbreviations that have been used to
represent a given namespace.
|
String |
getPrefixForNamespace(String namespace)
Returns the current abbreviation to use for a given namespace,
or null if undefined.
|
void |
removedStatement(org.apache.jena.rdf.model.Statement s) |
String |
toString() |
addedStatements, addedStatements, addedStatements, addedStatements, notifyEvent, removedStatements, removedStatements, removedStatements, removedStatementspublic NamespaceMapperJena(org.apache.jena.ontology.OntModel dataModel,
org.apache.jena.ontology.OntModel metadataModel,
String namespaceForNamespaceObjects)
public void addedStatement(org.apache.jena.rdf.model.Statement s)
addedStatement in interface org.apache.jena.rdf.model.ModelChangedListeneraddedStatement in class org.apache.jena.rdf.listeners.StatementListenerpublic void removedStatement(org.apache.jena.rdf.model.Statement s)
removedStatement in interface org.apache.jena.rdf.model.ModelChangedListenerremovedStatement in class org.apache.jena.rdf.listeners.StatementListenerpublic String getNamespaceForPrefix(String prefix)
NamespaceMappergetNamespaceForPrefix in interface NamespaceMapperprefix - Prefixpublic String getPrefixForNamespace(String namespace)
NamespaceMappergetPrefixForNamespace in interface NamespaceMappernamespace - Namespacepublic List<String> getPrefixesForNamespace(String namespace)
NamespaceMappergetPrefixesForNamespace in interface NamespaceMappernamespace - NamespaceCopyright © 2021. All rights reserved.