public void evaluate(org.openrdf.rio.RDFHandler rdfh) { IGraph g = this.EvaluateQuery(); SesameMapping mapping = new SesameMapping(g, new dotSesame.impl.GraphImpl()); rdfh.startRDF(); foreach (String prefix in g.NamespaceMap.Prefixes) { rdfh.handleNamespace(prefix, g.NamespaceMap.GetNamespaceUri(prefix).ToString()); } foreach (Triple t in g.Triples) { rdfh.handleStatement(SesameConverter.ToSesame(t, mapping)); } rdfh.endRDF(); }
public void exportStatements(org.openrdf.model.Resource r, org.openrdf.model.URI uri, org.openrdf.model.Value v, bool b, org.openrdf.rio.RDFHandler rdfh, params org.openrdf.model.Resource[] rarr) { dotSesameRepo.RepositoryResult results = this.getStatements(r, uri, v, b, rarr); rdfh.startRDF(); while (results.hasNext()) { rdfh.handleStatement((dotSesame.Statement)results.next()); } rdfh.endRDF(); }
public void export(org.openrdf.rio.RDFHandler rdfh, params org.openrdf.model.Resource[] rarr) { this.exportStatements(null, null, null, false, rdfh, rarr); }