Class NSPrefixMappings
java.lang.Object
it.uniroma2.art.semanticturkey.ontology.NSPrefixMappings
This class realizes a File-persisted manager for namespace-prefix mappings, adopted inside Semantic Turkey
projects
This system has an in-memory representation of the map, which is regularly persisted to file; its sync is managed internally. On the contrary, this manager does not syncs automatically with the prefix-namespace mappings held inside an RDF4J repository. This latter sync is managed by the {@link {@link STOntologyManager}
This system has an in-memory representation of the map, which is regularly persisted to file; its sync is managed internally. On the contrary, this manager does not syncs automatically with the prefix-namespace mappings held inside an RDF4J repository. This latter sync is managed by the {@link {@link STOntologyManager}
- Author:
- Armando Stellato, Manuel Fiorelli, Andrea Turbati
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getFile()
getNamespaceFromPrefix
(String prefix) getPrefixFromNamespace
(String namespace) void
removeNSPrefixMapping
(String namespace) void
setNSPrefixMapping
(String namespace, String newPrefix) void
-
Field Details
-
prefixMappingFileName
- See Also:
-
-
Constructor Details
-
NSPrefixMappings
- Throws:
IOException
-
-
Method Details
-
updatePrefixMappingRegistry
- Throws:
NSPrefixMappingUpdateException
-
setNSPrefixMapping
public void setNSPrefixMapping(String namespace, String newPrefix) throws NSPrefixMappingUpdateException - Throws:
NSPrefixMappingUpdateException
-
removeNSPrefixMapping
- Throws:
NSPrefixMappingUpdateException
-
getNamespaceFromPrefix
-
getPrefixFromNamespace
-
getNSPrefixMappingTable
- Returns:
- a freshly created
map
with prefixes as keys and namespaces as values
-
clearNSPrefixMappings
- Throws:
NSPrefixMappingUpdateException
-
getFile
- Returns:
- the file where prefix mappings customized by the user are being persisted
-