JENA SPARQL WARN [main] (Log.java:80) - Binding.add: null value - ignored error in eclipse -
i'm trying run sparql queries on self-made ontology in protege, have stored data in tdb persistent storage , far assume data being stored in it. have run several sparql queries of same ontology file in jena fuseki , of them working, unfortunately, whenever try run same sparql queries on dataset shows me null value error shown in question above. appreciate if helps me in matter , specific i'm relatively new , inexperienced in field of semantic web. following code of tdb file.
package jena; import java.util.iterator; import org.apache.jena.query.dataset; import org.apache.jena.query.query; import org.apache.jena.query.queryexecution; import org.apache.jena.query.queryexecutionfactory; import org.apache.jena.query.queryfactory; import org.apache.jena.query.resultset; import org.apache.jena.query.resultsetformatter; import org.apache.jena.rdf.model.*; import org.apache.jena.tdb.tdb; import org.apache.jena.util.filemanager; import com.hp.hpl.jena.query.querysolution; import com.hp.hpl.jena.rdf.model.literal; import com.hp.hpl.jena.tdb.tdbfactory; //import com.hp.hpl.jena.util.filemanager; public class tdb { public static void main(string[] args) { new tdb().storetdbdata(); new tdb().loadtdbdata(); new tdb().viasparql(); } public void storetdbdata() { string directory = "c:/users/shahrukh/databases"; dataset dataset = tdbfactory.createdataset(directory); model tdb = dataset.getdefaultmodel(); //model tdb = dataset.getnamedgraph( "graph42" ); string source ="e:/university work/fyp/sdd folder/my sdd/university.owl"; filemanager.get().loadmodel(source); //filemanager.get().readmodel( tdb, source); //dataset.commit(); tdb.sync(dataset); tdb.close(); dataset.close(); } public void loadtdbdata() { string directory = "c:/users/shahrukh/databases"; dataset dataset = tdbfactory.createdataset(directory) ; iterator<string> graphnames = dataset.listnames(); while (graphnames.hasnext()) { string graphname = graphnames.next(); system.out.println(graphname); } } public void viasparql() { string directory = "c:/users/shahrukh/databases" ; dataset dataset = tdbfactory.createdataset(directory) ; string sparqlquerystring = "select (count(*) ?count) { ?s ?p ?o }" ; /*string sparqlquerystring="prefix st: <http://www.semanticweb.org/shahrukh/ontologies/2017/4/university.owl#>"+ "prefix foaf: <http://www.semanticweb.org/shahrukh/ontologies/2017/4/university.owl#>"+ "prefix rdf: <http://www.semanticweb.org/shahrukh/ontologies/2017/4/university.owl#>" + "select ?y { <http://www.semanticweb.org/shahrukh/ontologies/2017/4/university.owl#jawadmirza> rdf:first_name ?y. }";*/ //string sparqlquerystring="select *"; //string sparqlquerystring="select * { graph ?g {} }"; string s2="prefix st: <http://www.semanticweb.org/shahrukh/ontologies/2017/4/university.owl#>" + "select ?first_name ?last_name { ?x st:first_name ?first_name ." + "?x st:last_name ?last_name" + "}"; string s="prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" + "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>" + "prefix owl: <http://www.w3.org/2002/07/owl#>" + "prefix xsd: <http://www.w3.org/2001/xmlschema#>" + "select ?s ?p ?o { ?s ?p ?o }"; string s3="select ?s ?p ?o {?s has+ ?o filter ( ?s = <id_6> )} "; query query = queryfactory.create(s) ; queryexecution qexec = queryexecutionfactory.create(query, dataset) ; queryexecution qexe = queryexecutionfactory.sparqlservice( "http://10.0.2.2:3030/dataset.html?tab=upload&ds=/fyp", query ); resultset results = qexec.execselect() ; /*while (results.hasnext()) { querysolution soln = (querysolution) results.nextsolution(); }*/ /*org.apache.jena.query.querysolution soln=results.nextsolution(); literal first_name=(literal) soln.getliteral("?s"); system.out.println(first_name);*/ resultsetformatter.out(system.out,results,query) ; } }
following exceptions have been receiving:
warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored warn [main] (log.java:80) - binding.add: null value - ignored ------------- | s | p | o | ============= | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -------------
Comments
Post a Comment