Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPARQL answers with wrong dataformat #24

Open
white-gecko opened this issue Jul 3, 2012 · 0 comments
Open

SPARQL answers with wrong dataformat #24

white-gecko opened this issue Jul 3, 2012 · 0 comments

Comments

@white-gecko
Copy link
Member

SPARQL answers with wrong dataformat.

Import this Resource into a virtuoso backed OntoWiki:

<http://localhost/activity/1/> a aair:Activity ;
    aair:activityActor <http://comiles.eu/natanael.rdf#me> ;
    ns3:published "2012-01-01T00:00:01+02:00"^^xsd:dateTime ;
    aair:activityVerb aair:Post ;
    aair:activityObject <http://localhost/object/1/> .

Do following query with the QueryEditor and with the Virtuoso Conductor

PREFIX atom: <http://www.w3.org/2005/Atom/>
PREFIX aair: <http://xmlns.notu.be/aair#>
SELECT ?activity ?date ?verb ?object
WHERE {
    ?activity a aair:Activity ;
              aair:activityActor  <http://comiles.eu/natanael.rdf#me> ;
              atom:published      ?date ;
              aair:activityVerb   ?verb ;
              aair:activityObject ?object .
}

correct answer by Virtuoso and OW with ZendDB

activity: http://localhost/1/
date: 2012-01-01T00:00:01+02:00
verb: http://xmlns.notu.be/aair#Post
object: http://localhost/object/1/

wrong answer by OW with Virtuoso

activity: http://localhost/1/
date: 2012-01-01 00:00:01
verb: http://xmlns.notu.be/aair#Post
object: http://localhost/object/1/

As you can see the date format is converted before the query result is returned.

Same with $model->sparqlQuery($query).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant