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()
void
removePrefix
(String prefixToRemove) org.apache.jena.sparql.core.Transactional
void
updatePrefix
(String prefix, String uri)
-
Constructor Details
-
PrefixesRDF
public PrefixesRDF()
-
-
Method Details
-
transactional
public org.apache.jena.sparql.core.Transactional transactional()- Specified by:
transactional
in interfacePrefixesAccess
-
fetchURI
- Specified by:
fetchURI
in interfacePrefixesAccess
-
updatePrefix
- Specified by:
updatePrefix
in interfacePrefixesAccess
-
removePrefix
- Specified by:
removePrefix
in interfacePrefixesAccess
-
getAll
- Specified by:
getAll
in interfacePrefixesAccess
-
fetchPrefix
Description copied from interface:PrefixesAccess
Fetches the prefixes assigned to the provided URI. There can be multiple in the List.- Specified by:
fetchPrefix
in interfacePrefixesAccess
-