public class ResourceUtils extends Object
Constructor and Description |
---|
ResourceUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsAnyValue(Model model,
Resource resource,
URI propertyURI)
Check if the resource identified by resourceID, has a property
identidified by propertyURI which has at least one value.
|
static void |
delete(Model model,
Resource resource)
Delete a resource from the model, meaning: delete all (resource, *, *)
triples from the model
|
static Node |
getSingleValue(Model model,
Resource subject,
URI propertyURI) |
public static boolean containsAnyValue(Model model, Resource resource, URI propertyURI) throws ModelRuntimeException
model
- -
the underlying RDF2Go modelresource
- -
must be an URI or a BlankNodepropertyURI
- -
URI of the propertyException
ModelRuntimeException
public static void delete(Model model, Resource resource) throws ModelRuntimeException
model
- -
the underlying RDF2Go modelresource
- -
URI or BlankNode of the resourceException
ModelRuntimeException
public static Node getSingleValue(Model model, Resource subject, URI propertyURI)
model
- subject
- propertyURI
- RDFDataException
- if multiple values are foundCopyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.