public enum YaCyMetadata extends java.lang.Enum<YaCyMetadata> implements Vocabulary
Enum Constant and Description |
---|
dt |
file |
flags |
fresh |
hash |
host |
lang |
lapp |
laudio |
limage |
llocal |
load |
lother |
lvideo |
md5 |
mod |
path |
referrer |
size |
sizename |
wc |
Modifier and Type | Field and Description |
---|---|
static byte[] |
HASH_PREFIX |
static int |
HASH_PREFIX_LENGTH |
static java.lang.String |
NAMESPACE |
private java.lang.String |
predicate |
static java.lang.String |
PREFIX |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Literal> |
getLiterals()
get a set of literals that are allowed for the predicate as values
|
java.lang.String |
getNamespace()
get the RDF identifier as an URL stub
|
java.lang.String |
getNamespacePrefix()
get the prefix for the predicates of this vocabulary
|
java.lang.String |
getPredicate()
get the predicate name which already contains the prefix url stub
|
java.lang.String |
getURIref()
The URI Reference as defined in http://www.w3.org/TR/rdf-concepts/ 2.2.3
This is a combination of the namespace prefic and the constant name,
concatenated with ':'.
|
static java.lang.String |
hashURI(byte[] hash) |
static YaCyMetadata |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static YaCyMetadata[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final YaCyMetadata hash
public static final YaCyMetadata host
public static final YaCyMetadata path
public static final YaCyMetadata file
public static final YaCyMetadata mod
public static final YaCyMetadata load
public static final YaCyMetadata fresh
public static final YaCyMetadata referrer
public static final YaCyMetadata md5
public static final YaCyMetadata size
public static final YaCyMetadata sizename
public static final YaCyMetadata wc
public static final YaCyMetadata dt
public static final YaCyMetadata flags
public static final YaCyMetadata lang
public static final YaCyMetadata llocal
public static final YaCyMetadata lother
public static final YaCyMetadata limage
public static final YaCyMetadata laudio
public static final YaCyMetadata lvideo
public static final YaCyMetadata lapp
public static final byte[] HASH_PREFIX
public static final int HASH_PREFIX_LENGTH
public static final java.lang.String NAMESPACE
public static final java.lang.String PREFIX
private final java.lang.String predicate
public static YaCyMetadata[] values()
for (YaCyMetadata c : YaCyMetadata.values()) System.out.println(c);
public static YaCyMetadata valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.lang.String hashURI(byte[] hash)
public java.lang.String getNamespace()
Vocabulary
getNamespace
in interface Vocabulary
public java.lang.String getNamespacePrefix()
Vocabulary
getNamespacePrefix
in interface Vocabulary
public java.util.Set<Literal> getLiterals()
Vocabulary
getLiterals
in interface Vocabulary
public java.lang.String getPredicate()
Vocabulary
getPredicate
in interface Vocabulary
public java.lang.String getURIref()
Vocabulary
getURIref
in interface Vocabulary