Tuesday 15 June 2010

owl - Jena and Pellet search on label returns error -


I've been on this for a few hours, trying to bullet to work with Janet. Now I got to the point it was working in the end. Inquiries of classrooms and intermediate sections are going well. For example:

  SELECT * WHERE {? X rdf: type uni: adult}  

While trying to query for labels using this:

  SELECT * WHERE {? X? Y "Vincent" ^^ xsd: string}  

Returns:

  org Mindswap.pellet.jena.PelletReasoner@1b13b5d PREFIX xsd: & lt; Http: //www.w3.org/2001/XMLSchema#> PREFIX uni: & lt; Http: //localhost/SemanticSearch/semanticsearch.owl#> PREFIX rdfs: & lt; Http: //www.w3.org/2000/01/rdf-schema#> PREFIX rdf: & lt; Http: //www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX OWL: & lt; Http: //www.w3.org/2002/07/owl#> Select * where {x y "Vincent" ^^ XSD? String} { "head": { "wars": [ "X", "Y"]}, "results": { "binding": [MRT 18 2015 13:06:41 org.mindswap.pellet.jena.graph .loader.DefaultGraphLoader addUnsupportedFeature Warning: unsupported axiom: ignore the range axiom AnnotationProperty http://www.w3.org/2000/01/rdf-schema# label MRT 18, 2015 01:06:41 org.mindswap.pellet .jena.graph.loader.DefaultGraphLoader addUnsupportedFeature Warning: unsupported axiom: AnnotationProperty neglected range axiom to http: //localhost/SemanticSearch/semanticsearch.owl#altLabel]}}  

My whole The code is as follows:

  Model rawM Odel = ModelFactory.createDefaultModel (); Rezner R = Peller Resurfactor. These instances () Create (); Model data = FileManager.get () loadModel ( "file: C: /wamp/www/SemanticSearch/workspace/SemanticSearch/src/semanticsearch.owl") .; InfModel Model = ModelFactory.createInfModel (R, Data); InputStream = New FileInputStream (new file ("C: /wamp/www/SemanticSearch/semanticsearch.owl")); Println (model.getReasoner ()); String sparqlQueryString1 = "PREFIX rdf: & lt; http: //www.w3.org/1999/02/22-rdf-syntax-ns#>" + "Prefix owl: & lt; http: //www.w3.org/2002/07/owl#>," + "prefix rdfs: & lt; http: //www.w3.org/2000/01/rdf -schema # & gt; "+" prefix XSD: & lt; http: //www.w3.org/2001/XMLSchema#>, "+" prefix uni: & lt; http: // localhost / SemanticSearch / semanticsearch. Owl # & gt; "+" SELECT * WHERE {? X? Y \ "Vincent \" ^ ^ xsd: string} "; Println (sparqlQueryString1); Query query = Queryfactory.create (sparqlQueryString1); Query Execution qexec = Queryexecturefacture.credit (query, model); Result result = qexec.execSelect (); // ORGINEEL ResultSetFormatter.out (System.out, Results, Query); // ALS RDF ResultSetFormatter.outputAsRDF ("", result); ResultSetFormatter.outputAsJSON (Results); Qexec.close (); }  

Is not Jane available in the wire? Even when I'm not using the pill? Is there any other way of asking altlabels of my otology using Jenna and Tablet?

This warning is only saying that the commentator is ignoring the declared categories on the comments properties of your query Should not be affected by


No comments:

Post a Comment