All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ontoware.rdfreactor.runtime.NewBridge Maven / Gradle / Ivy

Go to download

RDFReactor creates domain-specific, type-safe Java classes which act as a view over domain-free, loosely typed RDF instances. This library needs to be shipped together with generated classes.

The newest version!
package org.ontoware.rdfreactor.runtime;

import org.ontoware.aifbcommons.collection.ClosableIterator;
import org.ontoware.rdf2go.exception.ModelRuntimeException;
import org.ontoware.rdf2go.model.Model;
import org.ontoware.rdf2go.model.node.Resource;
import org.ontoware.rdf2go.model.node.URI;

public interface NewBridge {


	Object[] getAllInstances(Model model, java.lang.Class javaClass);

	boolean containsInstance(Model model, URI classURI);

	boolean isInstanceOf(Model model, Resource subject, URI classURI);

	// operations
	
	boolean addValue(Model model, Resource o, URI propertyURI, Object value)
	throws ModelRuntimeException;

	void addAllValues(Model model, Resource subject, URI propertyURI, Object[] values)
			throws ModelRuntimeException;

	boolean removeValue(Model model, Resource subject, URI propertyURI,
			Object value);

	boolean removeAllValues(Model model, Resource subject, URI propertyURI, Object[] values)
	throws ModelRuntimeException;

	boolean removeAllValues(Model model, Resource subject, URI propertyURI)
			throws ModelRuntimeException;

	void setValue(Model model, Resource resourceObject, URI propertyURI,
			Object value) throws ModelRuntimeException;

	void setAllValues(Model model, Resource subject, URI propertyURI, Object[] values)
			throws ModelRuntimeException;

	boolean updateValue(Model model, Resource subject, URI propertyURI,
			Object oldValue, Object newValue) throws ModelRuntimeException;


	ClosableIterator getSparqlSelectSingleVariable(Model model,
			Class returnType, String sparqlSelectQuery)
			throws ModelRuntimeException;
	
	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy