org.apache.stanbol.entityhub.servicesapi.defaults
Enum NamespaceEnum

java.lang.Object
  extended by java.lang.Enum<NamespaceEnum>
      extended by org.apache.stanbol.entityhub.servicesapi.defaults.NamespaceEnum
All Implemented Interfaces:
Serializable, Comparable<NamespaceEnum>

public enum NamespaceEnum
extends Enum<NamespaceEnum>

Defines commonly used name spaces to prevent multiple definitions in several classes

Author:
Rupert Westenthaler

Enum Constant Summary
atom
           
bio
           
cc
           
cmis
           
cmisRa
           
dailymed
          Dailymed is published by the National Library of Medicine, and provides high quality information about marketed drugs.
dbpediaOnt
           
dbpediaProp
           
dcElements
           
dcTerms
           
diseasome
          Diseasome publishes a network of 4,300 disorders and disease genes linked by known disorder-gene associations for exploring all known phenotype and disease gene associations, indicating the common genetic origin of many diseases.
drugbank
          DrugBank is a repository of almost 5000 FDA-approved small molecule and biotech drugs.
enhancer
          The Stanbol Enhancer namespace defining Enhancer, EnhancementEngine and EnhancementChain.
entityhub
          The Namespace used by the Entityhub to define its concepts such as Entity, Representation ...
entityhubQuery
          The namespace used by the Entityhub to define query related concepts e.g.
event
          The Event ontology (http://purl.org/NET/c4dm/event.owl#)
fise
          The FISE namespace (1st version of the Enhancement Structure).
foaf
           
frbr
          Expression of Core FRBR Concepts in RDF (http://vocab.org/frbr/core)
geo
           
geonames
           
georss
           
gml
           
goodRelations
           
jcr
           
jcrMix
           
jcrNt
           
jcrSv
           
linkedct
          The Linked Clinical Trials (LinkedCT) project aims at publishing the first open Semantic Web data source for clinical trials data.
media
          The W3C Ontology for Media Resources http://www.w3.org/TR/mediaont-10/
mo
          The Music Ontology (http://musicontology.com/)
nci
          National Cancer Institute Thesaurus (http://www.mindswap.org/2003/CancerOntology/)
owl
           
owlTime
          The Time ontology (http://www.w3.org/TR/owl-time/)
rdf
           
rdfs
           
rel
          Relationship: A vocabulary for describing relationships between people (http://purl.org/vocab/relationship/)
rickModel
          Deprecated. 
rickQuery
          Deprecated. 
rss
           
schema
           
sider
          SIDER contains information on marketed drugs and their adverse effects.
sioc
           
siocTypes
           
skos
           
stitch
          STITCH contains information on chemicals and proteins as well as their interactions and links.
swrc
           
tcm
           
timeline
          The Timeline ontology (http://purl.org/NET/c4dm/timeline.owl#)
vCal
           
vCard
           
xml
           
xsd
           
xsi
           
 
Method Summary
static NamespaceEnum forNamespace(String namespace)
          Getter for the NamespaceEnum entry based on the string namespace
static NamespaceEnum forPrefix(String prefix)
          Getter for the NamespaceEnum entry based on the prefix
static String getFullName(String shortUri)
          Lookup if the parsed short URI (e.g "rdfs:label") uses one of the registered prefixes of this Enumeration of if the parsed short URI uses the default namespace (e.g.
 String getNamespace()
           
 String getPrefix()
           
static String getShortName(String fullUri)
          Parsed the namespace of the parsed full URI by searching the last occurrence of '#' or '/' and than looks if the namespace is part of this enumeration.
 boolean isDefault()
           
 String toString()
           
static NamespaceEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NamespaceEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

enhancer

public static final NamespaceEnum enhancer
The Stanbol Enhancer namespace defining Enhancer, EnhancementEngine and EnhancementChain. This is NOT the namespace of the enhancement structure. As EnhancementStrucutre up to now still the old FISE namespace is used.


entityhub

public static final NamespaceEnum entityhub
The Namespace used by the Entityhub to define its concepts such as Entity, Representation ...


entityhubQuery

public static final NamespaceEnum entityhubQuery
The namespace used by the Entityhub to define query related concepts e.g. the full text search field, semantic context field, result score ...


fise

public static final NamespaceEnum fise
The FISE namespace (1st version of the Enhancement Structure). Will be replaced by the Stanbol Enhancement Structure by a future release (see STANBOL-3).


xsd

public static final NamespaceEnum xsd

xsi

public static final NamespaceEnum xsi

xml

public static final NamespaceEnum xml

rdf

public static final NamespaceEnum rdf

rdfs

public static final NamespaceEnum rdfs

owl

public static final NamespaceEnum owl

atom

public static final NamespaceEnum atom

cmis

public static final NamespaceEnum cmis

cmisRa

public static final NamespaceEnum cmisRa

jcr

public static final NamespaceEnum jcr

jcrSv

public static final NamespaceEnum jcrSv

jcrNt

public static final NamespaceEnum jcrNt

jcrMix

public static final NamespaceEnum jcrMix

geo

public static final NamespaceEnum geo

georss

public static final NamespaceEnum georss

gml

public static final NamespaceEnum gml

dcElements

public static final NamespaceEnum dcElements

dcTerms

public static final NamespaceEnum dcTerms

foaf

public static final NamespaceEnum foaf

vCal

public static final NamespaceEnum vCal

vCard

public static final NamespaceEnum vCard

skos

public static final NamespaceEnum skos

sioc

public static final NamespaceEnum sioc

siocTypes

public static final NamespaceEnum siocTypes

bio

public static final NamespaceEnum bio

rss

public static final NamespaceEnum rss

goodRelations

public static final NamespaceEnum goodRelations

swrc

public static final NamespaceEnum swrc

dbpediaOnt

public static final NamespaceEnum dbpediaOnt

dbpediaProp

public static final NamespaceEnum dbpediaProp

geonames

public static final NamespaceEnum geonames

cc

public static final NamespaceEnum cc

schema

public static final NamespaceEnum schema

media

public static final NamespaceEnum media
The W3C Ontology for Media Resources http://www.w3.org/TR/mediaont-10/


drugbank

public static final NamespaceEnum drugbank
DrugBank is a repository of almost 5000 FDA-approved small molecule and biotech drugs.


dailymed

public static final NamespaceEnum dailymed
Dailymed is published by the National Library of Medicine, and provides high quality information about marketed drugs.


sider

public static final NamespaceEnum sider
SIDER contains information on marketed drugs and their adverse effects. The information is extracted from public documents and package inserts.


linkedct

public static final NamespaceEnum linkedct
The Linked Clinical Trials (LinkedCT) project aims at publishing the first open Semantic Web data source for clinical trials data.


stitch

public static final NamespaceEnum stitch
STITCH contains information on chemicals and proteins as well as their interactions and links.


diseasome

public static final NamespaceEnum diseasome
Diseasome publishes a network of 4,300 disorders and disease genes linked by known disorder-gene associations for exploring all known phenotype and disease gene associations, indicating the common genetic origin of many diseases.


nci

public static final NamespaceEnum nci
National Cancer Institute Thesaurus (http://www.mindswap.org/2003/CancerOntology/)


tcm

public static final NamespaceEnum tcm

mo

public static final NamespaceEnum mo
The Music Ontology (http://musicontology.com/)


owlTime

public static final NamespaceEnum owlTime
The Time ontology (http://www.w3.org/TR/owl-time/)


event

public static final NamespaceEnum event
The Event ontology (http://purl.org/NET/c4dm/event.owl#)


timeline

public static final NamespaceEnum timeline
The Timeline ontology (http://purl.org/NET/c4dm/timeline.owl#)


rel

public static final NamespaceEnum rel
Relationship: A vocabulary for describing relationships between people (http://purl.org/vocab/relationship/)


frbr

public static final NamespaceEnum frbr
Expression of Core FRBR Concepts in RDF (http://vocab.org/frbr/core)


rickModel

@Deprecated
public static final NamespaceEnum rickModel
Deprecated. 
The old URI for the 'entityhub' namespace prefix as used by STANBOL 0.9.0-incubating.

See Also:
NamespaceEnum#entityhubModel

rickQuery

@Deprecated
public static final NamespaceEnum rickQuery
Deprecated. 
The old URI for the 'entityhub-query' namespace prefix as used by STANBOL 0.9.0-incubating.

See Also:
entityhubQuery
Method Detail

values

public static NamespaceEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NamespaceEnum c : NamespaceEnum.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NamespaceEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getNamespace

public String getNamespace()

getPrefix

public String getPrefix()

toString

public String toString()
Overrides:
toString in class Enum<NamespaceEnum>

forNamespace

public static NamespaceEnum forNamespace(String namespace)
Getter for the NamespaceEnum entry based on the string namespace

Parameters:
namespace - the name space
Returns:
the NamespaceEnum entry or null if the prased namespace is not present

forPrefix

public static NamespaceEnum forPrefix(String prefix)
Getter for the NamespaceEnum entry based on the prefix

Parameters:
prefix - the prefix or null to get the default namespace
Returns:
the NamespaceEnum entry or null if the prased prefix is not present

getFullName

public static String getFullName(String shortUri)
Lookup if the parsed short URI (e.g "rdfs:label") uses one of the registered prefixes of this Enumeration of if the parsed short URI uses the default namespace (e.g. "name"). In case the prefix could not be found the parsed URI is returned unchanged

Parameters:
shortUri - the short URI
Returns:
the full URI if the parsed shortUri uses a prefix defined by this Enumeration. Otherwise (including null) the parsed value.

getShortName

public static String getShortName(String fullUri)
Parsed the namespace of the parsed full URI by searching the last occurrence of '#' or '/' and than looks if the namespace is part of this enumeration. If a namesoace is found it is replaced by the registered prefix. If not the parsed URI is resturned

Parameters:
fullUri - the full uri to convert
Returns:
the converted URI or the parsed value of null was parsed, no local name was present (e.g. if the namespace itself was parsed) or the parsed namespace is not known.

isDefault

public boolean isDefault()
Returns:
the defaultPrefix


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.