|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.monnetproject.lemon.URIValue
eu.monnetproject.lemon.URIElement
public abstract class URIElement
Super-class for creating lemon elements. This is extended in the context of linguistic ontologies
| Constructor Summary | |
|---|---|
protected |
URIElement(String id)
|
protected |
URIElement(URI uri)
|
| Method Summary | |
|---|---|
boolean |
addAnnotation(URI annotationProperty,
Object annotation)
Add an annotation to this element |
boolean |
addProperty(Property prop,
PropertyValue propVal)
Add a property to this element |
void |
addType(URI uri)
Add a type to this element |
boolean |
equals(Object obj)
|
Map<URI,Collection<Object>> |
getAnnotations()
Get any annotations for this element |
Collection<Object> |
getAnnotations(URI annotation)
Get the set of annotations for this property |
String |
getID()
Get the blank node ID for this node or null if this is a named node |
Collection<PropertyValue> |
getProperty(Property prop)
Get the set of values for a property |
Map<Property,Collection<PropertyValue>> |
getPropertys()
Get any properties of this element |
Collection<URI> |
getTypes()
Get any types of the element |
int |
hashCode()
|
boolean |
removeAnnotation(URI annotationProperty,
Object annotation)
Remove an annotation from this element |
boolean |
removeProperty(Property prop,
PropertyValue propVal)
Remove a property from this element |
void |
removeType(URI uri)
Remove a type from this element |
String |
toString()
|
| Methods inherited from class eu.monnetproject.lemon.URIValue |
|---|
getInfHash, getURI |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface eu.monnetproject.lemon.model.LemonElementOrPredicate |
|---|
getURI |
| Constructor Detail |
|---|
protected URIElement(URI uri)
protected URIElement(String id)
| Method Detail |
|---|
public Map<Property,Collection<PropertyValue>> getPropertys()
LemonElement
getPropertys in interface LemonElementpublic Collection<PropertyValue> getProperty(Property prop)
LemonElement
getProperty in interface LemonElement
public boolean addProperty(Property prop,
PropertyValue propVal)
LemonElement
addProperty in interface LemonElement
public boolean removeProperty(Property prop,
PropertyValue propVal)
LemonElement
removeProperty in interface LemonElementpublic String getID()
LemonElementnull if this is a named node
getID in interface LemonElementpublic Collection<URI> getTypes()
LemonElement
getTypes in interface LemonElementpublic void addType(URI uri)
LemonElement
addType in interface LemonElementpublic void removeType(URI uri)
LemonElement
removeType in interface LemonElementpublic boolean equals(Object obj)
equals in class URIValuepublic int hashCode()
hashCode in class URIValuepublic String toString()
toString in class URIValuepublic Map<URI,Collection<Object>> getAnnotations()
LemonElement
getAnnotations in interface LemonElementpublic Collection<Object> getAnnotations(URI annotation)
LemonElement
getAnnotations in interface LemonElement
public boolean addAnnotation(URI annotationProperty,
Object annotation)
LemonElement
addAnnotation in interface LemonElementannotationProperty - The annotation propertyannotation - Either a java.net.URI, java.lang.String (blank nodes) or eu.monnetproject.lemon.model.Text
public boolean removeAnnotation(URI annotationProperty,
Object annotation)
LemonElement
removeAnnotation in interface LemonElementannotationProperty - The annotation propertyannotation - Either a java.net.URI, java.lang.String (blank nodes) or eu.monnetproject.lemon.model.Text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||