public class PrefixService extends ServiceBase implements Service
| Modifier and Type | Field and Description |
|---|---|
protected static PrefixService |
globalDefault |
protected Map<String,Object> |
jsonldContext |
protected com.hp.hpl.jena.shared.PrefixMapping |
prefixes |
protected static String |
PREFIXES_FILE_PARAM |
config| Constructor and Description |
|---|
PrefixService() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asJsonldContext()
Return a JSON-LD context declaring all the known prefixes
|
static PrefixService |
get()
Return the first defined Prefix service we can find, otherwise
return a default minimal service.
|
com.hp.hpl.jena.shared.PrefixMapping |
getPrefixes() |
String |
getResourceID(com.hp.hpl.jena.rdf.model.Resource resource)
Find a shortname for a resource to use in APIs.
|
void |
init(Map<String,String> config,
javax.servlet.ServletContext context) |
void |
setPrefixes(com.hp.hpl.jena.shared.PrefixMapping pm) |
getFileParam, getNamedService, getRequiredFileParam, getRequiredIntParam, getRequiredParam, postInit, postPostInitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostInit, postPostInitprotected static final String PREFIXES_FILE_PARAM
protected static PrefixService globalDefault
protected com.hp.hpl.jena.shared.PrefixMapping prefixes
public void init(Map<String,String> config, javax.servlet.ServletContext context)
init in interface Serviceinit in class ServiceBasepublic void setPrefixes(com.hp.hpl.jena.shared.PrefixMapping pm)
public com.hp.hpl.jena.shared.PrefixMapping getPrefixes()
public Map<String,Object> asJsonldContext()
public String getResourceID(com.hp.hpl.jena.rdf.model.Resource resource)
public static PrefixService get()
Copyright © 2014. All rights reserved.