public class Base extends Object
Constructor and Description |
---|
Base() |
Modifier and Type | Method and Description |
---|---|
static void |
add(Model model,
Resource resourceSubject,
URI propertyURI,
Object value) |
static void |
add(Model model,
Resource resourceSubject,
URI propertyURI,
Object value,
int maxCardinality) |
static <T> T[] |
asArray(ClosableIterator<T> it,
Class<T> returnType) |
static <T> List<T> |
asList(ClosableIterator<T> it) |
static Object |
castTo(Model model,
Resource resource,
Class<?> targetType)
Cast .this object to the given target Java type.
|
static long |
countPropertyValues(Model model,
Resource resourceSubject,
URI propertyURI) |
static void |
createInstance(Model model,
URI classURI,
Resource resourceSubject) |
static void |
deleteAllProperties(Model model,
Resource instanceResource)
Delete all (this, *, *)
|
static void |
deleteInstance(Model model,
URI rdfsClass,
Resource resource)
Removes rdf:type rdfsClass
|
static Node |
get_asNode(Model model,
Resource instanceResource,
URI propertyURI) |
static Object |
get(Model model,
Resource resourceSubject,
URI propertyURI,
Class<?> returnType) |
static <T> ReactorResult<T> |
getAll_as(Model model,
Resource resourceSubject,
URI propertyURI,
Class<T> returnType) |
static <T> T[] |
getAll_asArray(Model model,
Resource resourceSubject,
URI propertyURI,
Class<T> returnType) |
static <T> List<T> |
getAll_asList(Model model,
Resource resourceSubject,
URI propertyURI,
Class<T> returnType)
Convenience method for ClosableIterator
|
static ClosableIterator<Node> |
getAll_asNode(Model model,
Resource resourceSubject,
URI propertyURI) |
static List<Node> |
getAll_asNodeList(Model model,
Resource resourceSubject,
URI propertyURI) |
static <T> ReactorResult<T> |
getAll_Inverse_as(Model model,
URI propertyURI,
Object value,
Class<T> returnType) |
static ClosableIterator<Resource> |
getAll_Inverse(Model model,
URI propertyURI,
Object value) |
static <T> ClosableIterator<T> |
getAll(Model model,
Resource resourceSubject,
URI propertyURI,
Class<T> returnType) |
static <T> ReactorResult<T> |
getAllInstances_as(Model model,
URI classURI,
Class<T> returnType) |
static <T> T[] |
getAllInstances_asArray(Model model,
URI classURI,
Class<T> returnType) |
static <T> List<T> |
getAllInstances_asList(Model model,
URI classURI,
Class<T> returnType) |
static <T> ClosableIterator<T> |
getAllInstances(Model model,
URI classURI,
Class<T> returnType)
Return all instances of the given class.
|
static <T> T |
getInstance(Model model,
Resource resource,
Class<?> returnType) |
static Resource |
getInverse(Model model,
URI propertyURI,
Object value) |
static boolean |
has(Model model,
Resource resourceSubject,
URI propertyURI) |
static boolean |
hasInstance(Model model,
Resource classURI,
Resource resourceSubject) |
static boolean |
hasValue(Model model,
Resource resourceSubject,
URI propertyURI) |
static boolean |
hasValue(Model model,
Resource resourceSubject,
URI propertyURI,
Object value) |
static void |
remove(Model model,
Resource resourceSubject,
URI propertyURI,
Object value) |
static void |
remove(Model model,
Resource resourceSubject,
URI propertyURI,
Object value,
int minCardinality) |
static void |
removeAll(Model model,
Resource resourceSubject,
URI propertyURI) |
static void |
set(Model model,
Resource resourceSubject,
URI propertyURI,
Object value) |
public static void add(Model model, Resource resourceSubject, URI propertyURI, Object value, int maxCardinality) throws CardinalityException
CardinalityException
public static long countPropertyValues(Model model, Resource resourceSubject, URI propertyURI)
public static void createInstance(Model model, URI classURI, Resource resourceSubject)
public static <T> T getInstance(Model model, Resource resource, Class<?> returnType)
model
- RDF2Go modeluri
- instance identifierException
- if Model causes problemspublic static void deleteInstance(Model model, URI rdfsClass, Resource resource)
model
- rdfsClass
- resource
- public static Object get(Model model, Resource resourceSubject, URI propertyURI, Class<?> returnType) throws RDFDataException, ModelRuntimeException
public static <T> ClosableIterator<T> getAll(Model model, Resource resourceSubject, URI propertyURI, Class<T> returnType)
public static <T> ReactorResult<T> getAll_as(Model model, Resource resourceSubject, URI propertyURI, Class<T> returnType)
public static <T> List<T> getAll_asList(Model model, Resource resourceSubject, URI propertyURI, Class<T> returnType)
T
- model
- resourceSubject
- propertyURI
- returnType
- public static <T> T[] getAll_asArray(Model model, Resource resourceSubject, URI propertyURI, Class<T> returnType)
public static ClosableIterator<Node> getAll_asNode(Model model, Resource resourceSubject, URI propertyURI)
public static List<Node> getAll_asNodeList(Model model, Resource resourceSubject, URI propertyURI)
public static ClosableIterator<Resource> getAll_Inverse(Model model, URI propertyURI, Object value)
public static <T> ReactorResult<T> getAll_Inverse_as(Model model, URI propertyURI, Object value, Class<T> returnType)
public static <T> ClosableIterator<T> getAllInstances(Model model, URI classURI, Class<T> returnType)
model
- - underlying RDF2Go modelclassURI
- - URI of the (RDFS/OWL) class.public static <T> List<T> getAllInstances_asList(Model model, URI classURI, Class<T> returnType)
public static <T> T[] getAllInstances_asArray(Model model, URI classURI, Class<T> returnType)
public static <T> ReactorResult<T> getAllInstances_as(Model model, URI classURI, Class<T> returnType)
public static boolean hasInstance(Model model, Resource classURI, Resource resourceSubject)
public static boolean hasValue(Model model, Resource resourceSubject, URI propertyURI, Object value)
public static void remove(Model model, Resource resourceSubject, URI propertyURI, Object value)
public static void remove(Model model, Resource resourceSubject, URI propertyURI, Object value, int minCardinality) throws CardinalityException
CardinalityException
public static <T> List<T> asList(ClosableIterator<T> it)
public static <T> T[] asArray(ClosableIterator<T> it, Class<T> returnType)
public static Object castTo(Model model, Resource resource, Class<?> targetType)
targetType
- - Java type to which to cast this objectCopyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.