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

org.ontoware.rdfreactor.runtime.OOQueryRowImpl 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.rdf2go.model.QueryRow;

public class OOQueryRowImpl implements OOQueryRow {

	private QueryRow row;

	private OOQueryResultTableImpl ooQueryResultTable;

	public OOQueryRowImpl(QueryRow rdf2go) {
		this.row = rdf2go;
	}

	public OOQueryRowImpl(OOQueryResultTableImpl ooQueryResultTable, QueryRow rdf2go) {
		this.row = rdf2go;
		this.ooQueryResultTable = ooQueryResultTable;
	}

	public Object getValue(String varname) {
		return RDFReactorRuntime.node2javatype(this.ooQueryResultTable.getModel(), this.row.getValue(varname),
				this.ooQueryResultTable.getReturnType(varname));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy