| java.lang.Object org.ontoware.rdfreactor.runtime.Base
Field Summary | |
static Logger | log |
Method Summary | |
public static void | add(Model model, Resource resourceSubject, URI propertyURI, Object value) | public static void | add(Model model, Resource resourceSubject, URI propertyURI, Object value, int maxCardinality) | public static T[] | asArray(ClosableIterator<T> it, Class<T> returnType) | public static List<T> | asList(ClosableIterator<T> it) | public static Object | castTo(Model model, Resource resource, Class> targetType) Cast .this object to the given target Java type. | public static long | countPropertyValues(Model model, Resource resourceSubject, URI propertyURI) | public static void | createInstance(Model model, URI classURI, Resource resource) | public static void | deleteAllProperties(Model model, Resource instanceResource) | public static void | deleteInstance(Model model, URI rdfsClass, Resource resource) | public static Object | get(Model model, Resource resourceSubject, URI propertyURI, java.lang.Class> returnType) | public static ClosableIterator<T> | getAll(Model model, Resource resourceSubject, URI propertyURI, Class<T> returnType) | public static ClosableIterator<T> | getAllInstances(Model model, URI classURI, Class<T> returnType) Return all instances of the given class.
Parameters: model - -underlying RDF2Go model Parameters: classURI - -URI of the (RDFS/OWL) class. | public static ReactorResult<T> | getAllInstances_as(Model model, URI classURI, Class<T> returnType) | public static T[] | getAllInstances_asArray(Model model, URI classURI, Class<T> returnType) | public static java.util.List<T> | getAllInstances_asList(Model model, URI classURI, Class<T> returnType) | public static ClosableIterator<Resource> | getAll_Inverse(Model model, URI propertyURI, Object value) | public static ReactorResult<T> | getAll_Inverse_as(Model model, URI propertyURI, Object value, Class<T> returnType) | public static ReactorResult<T> | getAll_as(Model model, Resource resourceSubject, URI propertyURI, Class<T> returnType) | public static T[] | getAll_asArray(Model model, Resource resourceSubject, URI propertyURI, Class<T> returnType) | public static List<T> | getAll_asList(Model model, Resource resourceSubject, URI propertyURI, Class<T> returnType) Convenience method for ClosableIterator getAll. | 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 T | getInstance(Model model, Resource resource, Class> returnType) | public static Resource | getInverse(Model model, URI propertyURI, Object value) | public static Node | get_asNode(Model model, Resource instanceResource, URI propertyURI) | public static boolean | has(Model model, Resource resourceSubject, URI propertyURI) | public static boolean | hasInstance(Model model, Resource classURI, Resource resourceSubject) | public static boolean | hasValue(Model model, Resource resourceSubject, URI propertyURI) | 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) | public static void | removeAll(Model model, Resource resourceSubject, URI propertyURI) | public static void | set(Model model, Resource resourceSubject, URI propertyURI, Object object) |
castTo | public static Object castTo(Model model, Resource resource, Class> targetType)(Code) | | Cast .this object to the given target Java type.
Parameters: targetType - -Java type to which to cast this object converted object |
countPropertyValues | public static long countPropertyValues(Model model, Resource resourceSubject, URI propertyURI)(Code) | | |
deleteAllProperties | public static void deleteAllProperties(Model model, Resource instanceResource)(Code) | | Delete all (this, *, *)
Parameters: model - Parameters: instanceResource - |
deleteInstance | public static void deleteInstance(Model model, URI rdfsClass, Resource resource)(Code) | | Removes rdf:type rdfsClass
Parameters: model - Parameters: rdfsClass - Parameters: resource - |
getAllInstances | public static ClosableIterator<T> getAllInstances(Model model, URI classURI, Class<T> returnType)(Code) | | Return all instances of the given class.
Parameters: model - -underlying RDF2Go model Parameters: classURI - -URI of the (RDFS/OWL) class. all instances in the model |
getAllInstances_asArray | public static T[] getAllInstances_asArray(Model model, URI classURI, Class<T> returnType)(Code) | | |
getAll_asList | public static List<T> getAll_asList(Model model, Resource resourceSubject, URI propertyURI, Class<T> returnType)(Code) | | Convenience method for ClosableIterator getAll.
< Parameters: T - > Parameters: model - Parameters: resourceSubject - Parameters: propertyURI - Parameters: returnType - |
getInstance | public static T getInstance(Model model, Resource resource, Class> returnType)(Code) | | Parameters: model - RDF2Go model Parameters: uri - instance identifier an instance of Restriction or null if none existst throws: Exception - if Model causes problems |
|
|