If there will be a fix for this it would be nice this solution for the
jena provider will be also added to the main repo :
https://github.com/openlink/virtuoso-opensource/issues/687
Am 25.01.2018 um 11:19 schrieb Hugh Williams:
Hi Quentin,
Thanks for the input, I see what you mean as the jena program is
executing the query:
String qStr = "PREFIX base: <http://base.org#> PREFIX xsd:
<http://www.w3.org/2001/XMLSchema#>SELECT ?s {?s base:name
\"test_sensor\"^^xsd:string}";
and does actually return results when run against isql:
SQL> SPARQL define input:default-graph-uri <testGraph> PREFIX xsd:
<http://www.w3.org/2001/XMLSchema#> PREFIX base: <http://base.org#>
SELECT ?s WHERE { ?s base:name "test_sensor"^^xsd:string };
s
LONG VARCHAR
_______________________________________________________________________________
http://base.org#xxxxx1
http://base.org#xxxxx2
2 Rows. -- 101 msec.
SQL>
But when I set Virtuoso trace_on() ^^xsd:string element is being
stripped off by time it gets to Virtuoso ie
define input:default-graph-uri <testGraph>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX base: <http://base.org#>
SELECT ?s
WHERE
{ ?s base:name "test_sensor" }
which I assume must be done by the Jena Provider, thus we need to
check this ...
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc. // http://www.openlinksw.com/
Weblog -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter -- http://twitter.com/OpenLink
Google+ -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers
On 25 Jan 2018, at 02:27, Quentin <quentin@guidinghand.solutions
<mailto:quentin@guidinghand.solutions>> wrote:
Hi Hugh,
In your example, you have this query:
SELECT ?s WHERE { ?s base:name "test_sensor" };
But the data is:
s
o
datatype
LONG VARCHAR
LONG
VARCHAR
LONG
VARCHAR
_______________________________________________________________________________
http://base.org#xxxxx1
test_sensor
http://www.w3.org/2001/XMLSchema#string
Would you expect a query for string literals to return xsd typed strings?
I've always found that filtering or querying over string literals
would not be successful unless everything was very carefully typed.
I note that Jason tried xsd types in his queries in the first
instance, so that's probably not actually the issue here.
--
Regards,
Quentin Serrurier.
GuidingHand.Solutions
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users