Class PrefixLookup
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.util.PrefixLookup
This class represents a lookup service for Semantic Web prefixes.
-
Field Summary
Modifier and TypeFieldDescriptionstatic PrefixLookup
Default Prefix Lookup (independent of a particular ontology).static PrefixLookup
private static Pattern
-
Constructor Summary
ConstructorDescriptionPrefixLookup
(TestCase tc, boolean isleftPrefixMap) PrefixLookup
(Map<String, String> mapping) PrefixLookup
(Set<String> uris) PrefixLookup
(org.apache.jena.ontology.OntModel m) -
Method Summary
Modifier and TypeMethodDescriptiongetMappingFromOntModel
(org.apache.jena.ontology.OntModel m) Given a URI, this method returns the prefixed URI.
-
Field Details
-
DEFAULT
Default Prefix Lookup (independent of a particular ontology). -
EMPTY
-
mapping
-
splitBySlashOrHashtag
-
-
Constructor Details
-
PrefixLookup
-
PrefixLookup
-
PrefixLookup
-
PrefixLookup
public PrefixLookup(org.apache.jena.ontology.OntModel m)
-
-
Method Details
-
getMappingFromOntModel
-
getMappingFromUris
-
getPrefixMap
-
getPrefix
Given a URI, this method returns the prefixed URI. If the prefix is available in mapping, the short name will be returned (e.g. 'daml:someConcept' rather than 'http://www.daml.org/2001/03/daml+oil#someConcept'). If the prefix is not available in the mapping, the full string will be returned.- Parameters:
uriString
- The URI of which the prefix shall be obtained.- Returns:
- Prefixed URI as String.
-
initPrefixMapping
-