Hi.
Im moving to production environment but the virtuoso thats provide Centos have
different behavior that dev environment.
example:
=== dev ===
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX cc: <http://www.toeska.cl/ns/contentcompass/ontology/v1.0#>
select ?facetItem ?facetLabel ?facetItemValue
FROM <urn:contentcompass:graph:facet>
where {
?facetItem rdfs:label ?facetLabel .
?facetItem rdf:type cc:FacetItem .
optional{ ?facetItem cc:facetItemValue ?facetItemValue} .
optional{ ?facetItem cc:hasAttribute ?facetAttribute} .
optional{ ?facetAttribute cc:name ?name} .
optional{ ?facetAttribute cc:value ?value} .
FILTER (?facetItem
in(<http://www.toeska.cl/ns/contentcompass/ontology/time/v1.0#1872>))
}
order by ?facetLabel
LIMIT 1
result set:
facetItem
facetLabel
facetItemValue
http://www.toeska.cl/ns/contentcompass/ontology/time/v1.0#1872
"1872"^^<http://www.w3.org/2001/XMLSchema#string>
ok, one result is ok
=== Production ====
Run the same query and result set empty, too bad!
But if i modify the query, grouping all optional like that
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX cc: <http://www.toeska.cl/ns/contentcompass/ontology/v1.0#>
select ?facetItem ?facetLabel ?facetItemValue
FROM <urn:contentcompass:graph:facet>
where {
?facetItem rdfs:label ?facetLabel .
?facetItem rdf:type cc:FacetItem .
optional{ ?facetItem cc:facetItemValue ?facetItemValue .
?facetItem cc:hasAttribute ?facetAttribute .
?facetAttribute cc:name ?name .
?facetAttribute cc:value ?value} .
FILTER (?facetItem
in(<http://www.toeska.cl/ns/contentcompass/ontology/time/v1.0#1872>))
}
order by ?facetLabel
LIMIT 1
result set:
facetItem
facetLabel
facetItemValue
http://www.toeska.cl/ns/contentcompass/ontology/time/v1.0#1872
1872
Nice, i got almost the same data. Two things wear here, different behavior and
different literal representation
"1872"^^<http://www.w3.org/2001/XMLSchema#string> vs just 1872
Virtuoso versions below, the data was restore from same backup. Have any
configuration in virtuoso.ini thats explain this differences
Production Centos:
OpenLink Virtuoso Server
Version 06.01.3127-pthreads for Linux as of Jan 14 2011
Started on: 2013/01/17 18:31 GMT-180
Dev:
OpenLink Virtuoso Server
Version 06.01.3127-pthreads for Linux as of Mar 28 2012
Started on: 2013/01/14 18:20 GMT-180
Best Regards!
--
Marcelo Aliquintuy
87433162
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users