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:
java.io.Serializable, java.lang.Comparable<NamespaceEnum>

public enum NamespaceEnum
extends java.lang.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.
entityhubModel
           
entityhubQuery
           
foaf
           
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/
nci
          National Cancer Institute Thesaurus (http://www.mindswap.org/2003/CancerOntology/)
owl
           
rdf
           
rdfs
           
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
           
vCal
           
vCard
           
xml
           
xsd
           
xsi
           
 
Method Summary
static NamespaceEnum forNamespace(java.lang.String namespace)
          Getter for the NamespaceEnum entry based on the string namespace
static NamespaceEnum forPrefix(java.lang.String prefix)
          Getter for the NamespaceEnum entry based on the prefix
static java.lang.String getFullName(java.lang.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.
 java.lang.String getNamespace()
           
 java.lang.String getPrefix()
           
static java.lang.String getShortName(java.lang.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()
           
 java.lang.String toString()
           
static NamespaceEnum valueOf(java.lang.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

entityhubModel

public static final NamespaceEnum entityhubModel

entityhubQuery

public static final NamespaceEnum entityhubQuery

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
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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getNamespace

public java.lang.String getNamespace()

getPrefix

public java.lang.String getPrefix()

toString

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

forNamespace

public static NamespaceEnum forNamespace(java.lang.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(java.lang.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 java.lang.String getFullName(java.lang.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 the parsed value.

getShortName

public static java.lang.String getShortName(java.lang.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.