|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Resource
This interface represents rdfs:Resource
.
Note: Do not confuse with de.hedenus.rdf.Resource
.
Field Summary | |
---|---|
static java.lang.String |
URI
|
Method Summary | |
---|---|
java.lang.String |
about()
Returns the identifier of the resource, either its blank node ID or its URI. |
Resource[] |
getProperties(java.lang.String propertyURI)
Returns the values of the properties with the specified property-URI as an array of resources. |
Resource |
getProperty(java.lang.String propertyURI)
Returns the first property with the specified property-URI. |
java.lang.String |
getProperty(java.lang.String propertyURI,
java.util.Locale locale)
Returns the literal property with the specified property-URI and locale. |
java.lang.Object |
getProperty(java.lang.String propertyURI,
java.lang.String datatypeURI)
Returns the first property value of the property with the specified property-URI. |
Field Detail |
---|
static final java.lang.String URI
Method Detail |
---|
java.lang.String about()
java.lang.Object getProperty(java.lang.String propertyURI, java.lang.String datatypeURI)
datatypeURI
is null and the value is a plain literal, a string is returned.
If the property value is a plain literal and datatypeURI
is not null,
the specified datatypeURI will be applied to convert the plain literal into a Java type.
If the property value is typed literal,
the specified datatype must match the datatype of the literal or an exception is thrown.
If the value is not a literal but a URI reference or a blank node, a Resource object is returned.
propertyURI
- the property's URIdatatypeURI
- the datatype's URI or null
java.lang.String getProperty(java.lang.String propertyURI, java.util.Locale locale)
xml:lang
attribute, null
is returned.
propertyURI
- the property's URIlocale
- the locale or null
Resource getProperty(java.lang.String propertyURI)
propertyURI
- the property's URI
Resource[] getProperties(java.lang.String propertyURI)
propertyURI
- the property's URI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |