public final class PrefixNSService extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getLocalName(String uri,
String prefix)
Returns the local name of a URI by removing the prefix namespace
|
static String |
getNSFromPrefix(String prefix)
Given a prefix it returns the prefix namespace.
|
static String |
getPrefixFromNS(String namespace)
getPrefixFromNS.
|
static String |
getSparqlPrefixDecl()
getSparqlPrefixDecl.
|
static String |
getURIFromAbbrev(String abbreviation)
Given an abbreviated URI, it returns a full URI
|
static void |
setNSPrefixesInModel(com.hp.hpl.jena.rdf.model.Model model)
Adds the defined prefixes in a give model
|
public static String getNSFromPrefix(String prefix)
prefix - the prefix we want to getpublic static void setNSPrefixesInModel(com.hp.hpl.jena.rdf.model.Model model)
model - the model we want to initializepublic static String getSparqlPrefixDecl()
getSparqlPrefixDecl.
String object.public static String getURIFromAbbrev(String abbreviation)
abbreviation - the abbreviationCopyright © 2016. All rights reserved.