Hi Alexandru

I'm not using JENA, I'm working with latest version of dotNetRDF. If it 
works with JENA, maybe there is a problem with dotNetRDF

Regards
Przemek Misiuda


On 2012-12-04 14:52, Alexandru Todor wrote:
> Hi Misiuda,
>
> I just tried your query and everything works fine. Which version of 
> Jena/Arq are you using. I remember having some similar problems in 
> older versions of jena when hitting non-Ascii characters. It was fixed 
> more than a year ago however.
>
> Cheers,
> Alexandru
>
> On 12/04/2012 02:26 PM, Przemyslaw Misiuda wrote:
>> Hi Mohamed,
>>
>> Thank you for your answer.
>> I suppose that result of your query doesn't contains info about
>> "Interstella 5555" movie (as you can read in this post
>> http://stackoverflow.com/questions/13631193/query-dbpedia-sparql-endpoint-using-dotnetrdf-rdfparseexception#comment18719758_13643197)
>>  
>>
>>
>> Please try to run this query with JENA and let me know if it works 
>> for you
>>
>> Construct {?s ?p ?o}
>> WHERE {
>>      ?s ?p ?o .
>>      ?s <http://xmlns.com/foaf/0.1/depiction>
>> <http://upload.wikimedia.org/wikipedia/commons/9/95/Interstella5555.jpg>
>> }
>>
>>
>>
>> Best Regards
>> Przemek Misiuda
>>
>>> Hi Przemek,
>>>
>>> On 12/03/2012 02:48 PM, Przemyslaw Misiuda wrote:
>>>> Hi
>>>>
>>>> There is a problem with parsing your results in dotNetRDF and Jena
>>>> tools. Some data uses code 8211 instead of hyphen char.
>>>>
>>>> For more details please look at this topic:
>>>> http://stackoverflow.com/questions/13631193/query-dbpedia-sparql-endpoint-using-dotnetrdf-rdfparseexception
>>>>  
>>>>
>>>>
>>> I've checked that query with jena and it worked fine.
>>> I've checked it against DBpedia-Live [1], and it worked as well.
>>>
>>> The following code excerpt does the work:
>>>
>>>         QueryExecution queryExecutor;
>>>         String queryJapaneseFilms = "CONSTRUCT { ?film ?p ?o}\n" +
>>>                  "WHERE {\n" +
>>>                  "    ?film <http://purl.org/dc/terms/subject>
>>> <http://dbpedia.org/resource/Category:Japanese_films> .\n" +
>>>                  "    ?film ?p ?o\n" +
>>>                  "}\n" +
>>>                  "limit 500";
>>>
>>>          QueryExecution execution =
>>> QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql";,
>>> queryGetJapaneseFilms);
>>>
>>>          try {
>>>              Model model = execution.execConstruct();
>>>              StmtIterator iter = model.listStatements();
>>>
>>>              while (iter.hasNext()) {
>>>                  Statement stmt = iter.next();
>>>
>>>                  String subject = stmt.getSubject().toString();
>>>                  String predicate = stmt.getPredicate().toString();
>>>                  String object = stmt.getObject().toString();
>>>
>>>                  System.out.println(subject + "\t" + predicate + "\t" +
>>> object);
>>>              }
>>>          } catch (Exception e) {
>>>              e.printStackTrace();
>>>          }
>>>          finally {
>>>              execution.close();
>>>          }
>>>
>>>> Best Regards
>>>> Przemek Misiuda
>>> [1] http://live.dbpedia.org/sparql
>>>
>>
>>
>> ------------------------------------------------------------------------------
>>  
>>
>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> Remotely access PCs and mobile devices and provide instant support
>> Improve your efficiency, and focus on delivering more value-add services
>> Discover what IT Professionals Know. Rescue delivers
>> http://p.sf.net/sfu/logmein_12329d2d
>> _______________________________________________
>> Dbpedia-discussion mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>
>
>



------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to