public class FinalizedResource extends Resource
Resource
so that they
cannot be overwritten by subclasses.ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, NAMESPACE_PREFIX, ns_delim_index, PROP_INVOLVED_HUMAN_USER, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, SERVICE_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uri, VOCABULARY_NAMESPACE
Modifier | Constructor and Description |
---|---|
protected |
FinalizedResource() |
|
FinalizedResource(boolean isXMLLiteral) |
protected |
FinalizedResource(String uri) |
|
FinalizedResource(String uri,
boolean isXMLLiteral) |
protected |
FinalizedResource(String uriPrefix,
int numProps) |
Modifier and Type | Method and Description |
---|---|
boolean |
addType(String typeURI,
boolean blockFurtherTypes)
Set or add the type of this Resource.
|
String |
getLocalName()
Get the local name which is the part of the URI after the delimiter
('#').
|
String |
getNamespace()
Get the namespace of the URI which is the start of the URI including the
delimiter ('#').
|
Object |
getProperty(String propURI)
Get the RDF object for a specified property.
|
Enumeration |
getPropertyURIs()
Get all properties, i.e.
|
String |
getType()
Returns the URI of the first type added to the list of types of this
resource.
|
String[] |
getTypes()
Returns the URIs of all known types of this resource.
|
String |
getURI()
Get the URI.
|
boolean |
hasQualifiedName()
Determines if this Resource has a qualified, i.e.
|
boolean |
isAnon()
Determines if this Resource has an anonymous URI.
|
int |
numberOfProperties()
Returns the number of properties, i.e.
|
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, isWellFormed, literal, representsQualifiedURI, serializesAsXMLLiteral, setProperty, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
protected FinalizedResource()
Resource.Resource()
public FinalizedResource(boolean isXMLLiteral)
Resource.Resource(boolean)
protected FinalizedResource(String uri)
Resource.Resource(String)
public FinalizedResource(String uri, boolean isXMLLiteral)
Resource.Resource(String, boolean)
protected FinalizedResource(String uriPrefix, int numProps)
Resource.Resource(String, int)
public final Object getProperty(String propURI)
Resource
getProperty
in class Resource
propURI
- URI of the property.public final int numberOfProperties()
Resource
numberOfProperties
in class Resource
public final boolean isAnon()
Resource
public final boolean hasQualifiedName()
Resource
hasQualifiedName
in class Resource
public final Enumeration getPropertyURIs()
Resource
getPropertyURIs
in class Resource
public final boolean addType(String typeURI, boolean blockFurtherTypes)
Resource
public final String getLocalName()
Resource
getLocalName
in class Resource
Resource.getNamespace()
,
Resource.getFilename()
public final String getNamespace()
Resource
getNamespace
in class Resource
Resource.getLocalName()
,
Resource.getFilename()
public final String getType()
Resource
Copyright © 2018 universAAL Consortium. All rights reserved.