net.antidot.semantic.rdf.model.impl.sesame.SemiStatement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of db2triples Show documentation
Show all versions of db2triples Show documentation
RDB2RDF Implementation from Antidot
/*
* Copyright 2011 Antidot [email protected]
* https://github.com/antidot/db2triples
*
* DB2Triples is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* DB2Triples is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/**
*
* RDF Semi Statement class
*
* Represents a semi-statement which is statement-like without subject.
*
* Reference : R2RML: RDB to RDF Mapping Language, W3C Working Draft 24 March 2011
*
*/
package net.antidot.semantic.rdf.model.impl.sesame;
import org.openrdf.model.URI;
import org.openrdf.model.Value;
public class SemiStatement {
private URI p;
private Value o;
public SemiStatement(URI p, Value o){
this.p = p;
this.o = o;
}
public URI getPredicate() {
return p;
}
public void setPredicate(URI p) {
this.p = p;
}
public Value getObject() {
return o;
}
public void setObject(Value o) {
this.o = o;
}
public String toString(){
return "[SemiStatement:toString] predicate = " + p + ", object = " + o;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy