|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectse.kmr.scam.rdf.util.SCAMUtil
Description of the Class
| Field Summary | |
protected static org.apache.log4j.Category |
_cat
Description of the Field |
| Constructor Summary | |
SCAMUtil()
|
|
| Method Summary | |
static Resource |
addContentLocation(Resource resource,
String location)
Deprecated. |
static Resource |
addContentName(Resource resource,
String name)
Deprecated. |
static Resource |
addContentSize(Resource resource,
long size)
Deprecated. |
static Resource |
addMimeType(Resource resource,
String mimeType)
Deprecated. |
static String |
getContentLocation(Resource resource)
Gets the content location for a Resource.
|
static String |
getContentName(Resource resource)
Gets the content name for a Resource.
|
static String |
getContentSize(Resource resource)
Gets the content size for a Resource.
|
static String |
getMimeType(Resource resource)
Gets the MIME-type for a Resource.
|
static List |
listProperties(Model m,
Resource subject,
Property predicate,
Resource type)
List all objects of given type having subject of given predicate. :) Ontology-helper. |
static List |
listPropertyLabels(Model m,
Resource subject,
Property predicate,
String lang)
List all labels (DC.title) of subject with given predicate |
static Resource |
setContentLocation(Resource resource,
String location)
Sets content location property to a Resource. |
static Resource |
setContentName(Resource resource,
String name)
Sets content name property to a Resource. |
static Resource |
setContentSize(Resource resource,
long size)
Set content size property to a Resource.
|
static Resource |
setMimeType(Resource resource,
String mimeType)
Sets a MIME-type property to a Resource.
|
static Model |
setModelIdentity(List resourceList,
String identity,
Model model)
Sets the modelIdentity property of a list of resources in a model. |
static Model |
setModelIdentity(Resource resource,
String identity,
Model model)
Sets the modelIdentity property of a resource in a model. |
static Model |
setModelIdentity(String uri,
String identity,
Model model)
Sets the modelIdentity property of a resource in a model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.log4j.Category _cat
| Constructor Detail |
public SCAMUtil()
| Method Detail |
public static Model setModelIdentity(String uri,
String identity,
Model model)
Resource
is given as an URI.
uri - the uri of the Resourceidentity - The new modelIdentity valuemodel - Set the property in this model
public static Model setModelIdentity(Resource resource,
String identity,
Model model)
resource - The Resourceidentity - The new modelIdentity valuemodel - Set the property in this model
public static Model setModelIdentity(List resourceList,
String identity,
Model model)
String
) or with a Resource.
identity - The new modelIdentity valuemodel - Set the properties in this model.resourceList - the list of resources
public static Resource addMimeType(Resource resource,
String mimeType)
throws RDFException
Resource.
The Resource must originate from a model.
RDFException
public static Resource setMimeType(Resource resource,
String mimeType)
throws RDFException
Resource.
The Resource must originate from a model.
RDFException
public static String getMimeType(Resource resource)
throws RDFException
Resource.
The Resource must originate from a model.
RDFException
public static Resource addContentSize(Resource resource,
long size)
throws RDFException
Resource.
The Resource must originate from a model.
RDFException
public static Resource setContentSize(Resource resource,
long size)
throws RDFException
Resource.
The Resource must originate from a model.
RDFException
public static String getContentSize(Resource resource)
throws RDFException
Resource.
The Resource must originate from a model.
RDFException
public static Resource addContentName(Resource resource,
String name)
throws RDFException
Resource.Resource must originate from a model.
RDFException
public static Resource setContentName(Resource resource,
String name)
throws RDFException
Resource.Resource must originate from a model.
RDFException
public static String getContentName(Resource resource)
throws RDFException
Resource.
The Resource must originate from a model.
RDFException
public static Resource addContentLocation(Resource resource,
String location)
throws RDFException
Resource.Resource must originate from a model.
RDFException
public static Resource setContentLocation(Resource resource,
String location)
throws RDFException
Resource.Resource must originate from a model.
RDFException
public static String getContentLocation(Resource resource)
throws RDFException
Resource.
The Resource must originate from a model.
RDFException
public static List listProperties(Model m,
Resource subject,
Property predicate,
Resource type)
throws RDFException
m - Modelsubject - Subjectpredicate - Predicatetype - RDF.type
RDFException
public static List listPropertyLabels(Model m,
Resource subject,
Property predicate,
String lang)
throws RDFException
m - Modelsubject - Subjectpredicate - Predicatelang - Language (null means any)
RDFException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||