java.lang.Object
org.apache.jena.riot.system.Prefixes
Functions related to
PrefixMap
.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrefixMap
adapt
(org.apache.jena.graph.Graph graph) Provide, via an adapter if necessary, thePrefixMap
for aGraph
.static org.apache.jena.shared.PrefixMapping
Apply a wrapper to aPrefixMap
to provide thePrefixMapping
API.static PrefixMap
adapt
(org.apache.jena.shared.PrefixMapping prefixMapping) Apply a wrapper to aPrefixMapping
to provide thePrefixMap
API.static String
Reverse lookup of URI to a prefix.static boolean
isLegalPrefix
(String prefix) Test whether a prefix string is legal for Turtle.static String
Canonical prefix - remove a trailing ":".static String
Calculate a printable multi-line string.
-
Field Details
-
dftGraphPrefixSet
Special name for default graph prefixes. This is different to the datasetPrefixSet. Only used by (TDB1) GraphTxnTDB_Prefixes and (TDB2) GraphViewSwitchable_Prefixes which have separated dataset/default graph prefixes. For legacy migration reasons, TDB1 uses "" and TDB2 uses defaultGraphNodeGenerated for the dataset prefix set. See TDB1 ) TDB2StoragePrefixesView
- See Also:
-
datasetPrefixSet
Name for dataset-wide prefixes.- See Also:
-
nodeDefaultGraph
public static org.apache.jena.graph.Node nodeDefaultGraphName assigned to the default graph. -
nodeDataset
public static org.apache.jena.graph.Node nodeDatasetName for dataset prefixes.
-
-
Constructor Details
-
Prefixes
public Prefixes()
-
-
Method Details
-
prefix
Canonical prefix - remove a trailing ":". The return is not null. -
isLegalPrefix
Test whether a prefix string is legal for Turtle. Turtle grammar rule PN_PREFIX. This rule is the same as the XML 1.1 QName namespace production with the addition of allowing the empty string. A "prefix" does not include any trailing ":" character. -
findByURI
Reverse lookup of URI to a prefix. General implementation by scanning thePrefixMap
. Returns a prefix if found or null. If there are several prefixes for the same URI, returns one at random. -
adapt
Provide, via an adapter if necessary, thePrefixMap
for aGraph
. -
adapt
Apply a wrapper to aPrefixMap
to provide thePrefixMapping
API. -
toString
Calculate a printable multi-line string.
-