Module org.apache.jena.fuseki.core
Class PrefixesRDF
java.lang.Object
org.apache.jena.fuseki.servlets.prefixes.PrefixesRDF
- All Implemented Interfaces:
PrefixesAccess
PrefixesAccess implementation using a dedicated DatasetGraph the
record the prefixes in an RDF format.
The prefix-URI mappings are represented in blank nodes of type Prefix, with prefixName and prefixURI attributes.
PREFIX prefixes: <http://jena.apache.org/prefixes#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns##>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema##>
[] rdf:type prefixes:Prefix ;
prefixes:prefixName "test" ;
prefixes:prefixURI "http://example/testPrefix#"^^xsd:anyURI
.
[ rdf:type prefixes:Prefix ;
prefixes:prefixName "ns" ;
prefixes:prefixURI "http://example/namespace#"^^xsd:anyURI
]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetchPrefix(String uri) Fetches the prefixes assigned to the provided URI.getAll()voidremovePrefix(String prefixToRemove) org.apache.jena.sparql.core.TransactionalvoidupdatePrefix(String prefix, String uri)
-
Constructor Details
-
PrefixesRDF
public PrefixesRDF()
-
-
Method Details
-
transactional
public org.apache.jena.sparql.core.Transactional transactional()- Specified by:
transactionalin interfacePrefixesAccess
-
fetchURI
- Specified by:
fetchURIin interfacePrefixesAccess
-
updatePrefix
- Specified by:
updatePrefixin interfacePrefixesAccess
-
removePrefix
- Specified by:
removePrefixin interfacePrefixesAccess
-
getAll
- Specified by:
getAllin interfacePrefixesAccess
-
fetchPrefix
Description copied from interface:PrefixesAccessFetches the prefixes assigned to the provided URI. There can be multiple in the List.- Specified by:
fetchPrefixin interfacePrefixesAccess
-