| java.lang.Object org.ontoware.rdfreactor.runtime.ResourceUtils
ResourceUtils | public class ResourceUtils (Code) | | |
containsAnyValue | public static boolean containsAnyValue(Model model, Resource resource, URI propertyURI) throws ModelRuntimeException(Code) | | Check if the resource identified by resourceID, has a property
identidified by propertyURI which has at least one value.
Parameters: model - -the underlying RDF2Go model Parameters: resource - -must be an URI or a BlankNode Parameters: propertyURI - -URI of the property true if the property has at least one value defined throws: Exception - |
delete | public static void delete(Model model, Resource resource) throws ModelRuntimeException(Code) | | Delete a resource from the model, meaning: delete all (resource, *, *)
triples from the model
Parameters: model - -the underlying RDF2Go model Parameters: resource - -URI or BlankNode of the resource throws: Exception - |
getSingleValue | public static Node getSingleValue(Model model, Resource subject, URI propertyURI)(Code) | | Parameters: model - Parameters: subject - Parameters: propertyURI - the single value of the given property, or null throws: RDFDataException - if multiple values are found |
|
|