|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.any23.vocab.Vocabulary
public abstract class Vocabulary
Base class for the definition of a vocabulary.
| Constructor Summary | |
|---|---|
Vocabulary(String namespace)
Constructor. |
|
| Method Summary | |
|---|---|
protected org.openrdf.model.URI |
createClass(String namespace,
String resource)
Creates a resource and register it to the classes map. |
protected org.openrdf.model.URI |
createProperty(String namespace,
String property)
Creates a property and register it to the properties map. |
protected org.openrdf.model.URI |
createURI(String uriStr)
Creates a URI. |
org.openrdf.model.URI |
getClass(String name)
Returns a class defined within this vocabulary. |
org.openrdf.model.URI[] |
getClasses()
|
String |
getCommentFor(org.openrdf.model.URI resource)
Returns the comment for the given resource. |
Map<org.openrdf.model.URI,String> |
getComments()
Returns all the defined comments for resources. |
org.openrdf.model.URI |
getNamespace()
|
org.openrdf.model.URI[] |
getProperties()
|
org.openrdf.model.URI |
getProperty(String name)
Returns a property defined within this vocabulary. |
org.openrdf.model.URI |
getProperty(String name,
org.openrdf.model.URI defaultValue)
Returns a property defined within this vocabulary, if not found the defaultValue will be returned. |
org.openrdf.model.URI |
getPropertyCamelCase(String property)
Returns the property URI for the specified property string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Vocabulary(String namespace)
namespace - the namespace URI prefix.| Method Detail |
|---|
public org.openrdf.model.URI getNamespace()
public org.openrdf.model.URI getClass(String name)
name - class name.
public org.openrdf.model.URI getProperty(String name)
name - property name.
public org.openrdf.model.URI getProperty(String name,
org.openrdf.model.URI defaultValue)
defaultValue will be returned.
name - property name.defaultValue - the default value if property name not found.
public org.openrdf.model.URI getPropertyCamelCase(String property)
property - property name.
public org.openrdf.model.URI[] getClasses()
public org.openrdf.model.URI[] getProperties()
public Map<org.openrdf.model.URI,String> getComments()
public String getCommentFor(org.openrdf.model.URI resource)
resource - input resource to have a comment.
protected org.openrdf.model.URI createURI(String uriStr)
uriStr - the URI string
protected org.openrdf.model.URI createClass(String namespace,
String resource)
classes map.
namespace - vocabulary namespace.resource - name of the resource.
protected org.openrdf.model.URI createProperty(String namespace,
String property)
properties map.
namespace - vocabulary namespace.property - name of the property.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||