[Solved] To write a query SPARQL in Java code using strstarts filter

I have resolved my problem using this code: public QueryExecution query(){ String stringa = “http://dbpedia.org/resource/Fred_Guy”; ParameterizedSparqlString qs = new ParameterizedSparqlString( “” + “prefix dbpediaont: <http://dbpedia.org/ontology/>\n” + “prefix dbpedia: <http://dbpedia.org/resource/>\n” + “prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n” + “\n” + “select ?resource where {\n” + “?mat rdf:type ?resource\n” + “filter strstarts(str(?resource), dbpediaont:)\n” + “}” ); Resource risorsa = ResourceFactory.createResource(stringa); … Read more

[Solved] How to use Alignment API to generate a Alignment Format file?

First question: I guess that the “mentioned method” is the one in tutorial1. It is not the appropriate one since you have to write a program to output the alignment format and this is a command line interface tutorial. In this case, you’d better look at http://alignapi.gforge.inria.fr/tutorial/tutorial2/index.html Then, there are basically two ways to do: … Read more