{"action":"created","issue":{"url":"https://api.github.com/repos/protegeproject/sparql-dl-api/issues/3","repository_url":"https://api.github.com/repos/protegeproject/sparql-dl-api","labels_url":"https://api.github.com/repos/protegeproject/sparql-dl-api/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/protegeproject/sparql-dl-api/issues/3/comments","events_url":"https://api.github.com/repos/protegeproject/sparql-dl-api/issues/3/events","html_url":"https://github.com/protegeproject/sparql-dl-api/issues/3","id":192571476,"number":3,"title":"SPARQL-DL API doesn't support datatypes (strings)","user":{"login":"GitHubAndre","id":7847238,"avatar_url":"https://avatars.githubusercontent.com/u/7847238?v=3","gravatar_id":"","url":"https://api.github.com/users/GitHubAndre","html_url":"https://github.com/GitHubAndre","followers_url":"https://api.github.com/users/GitHubAndre/followers","following_url":"https://api.github.com/users/GitHubAndre/following{/other_user}","gists_url":"https://api.github.com/users/GitHubAndre/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHubAndre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHubAndre/subscriptions","organizations_url":"https://api.github.com/users/GitHubAndre/orgs","repos_url":"https://api.github.com/users/GitHubAndre/repos","events_url":"https://api.github.com/users/GitHubAndre/events{/privacy}","received_events_url":"https://api.github.com/users/GitHubAndre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-30T13:55:48Z","updated_at":"2016-12-02T17:54:42Z","closed_at":null,"body":"I'm using SPARQL-DL with OWL-API in a Java application. The Maven dependency is the following:\r\n```xml\r\n<dependency>\r\n    <groupId>edu.stanford.protege</groupId>\r\n    <artifactId>de-derivo-sparqldlapi</artifactId>\r\n    <version>2.0.0</version>\r\n</dependency>\r\n```\r\nI assume it downloads the right (compatible) version of OWL-API. I have a class Person with some individuals. Each individual has a data property called name which ranges over a string. The ontology is the following:\r\n```xml\r\n<?xml version=\"1.0\"?>\r\n\r\n<!DOCTYPE Ontology [\r\n    <!ENTITY xsd \"http://www.w3.org/2001/XMLSchema#\" >\r\n    <!ENTITY xml \"http://www.w3.org/XML/1998/namespace\" >\r\n    <!ENTITY rdfs \"http://www.w3.org/2000/01/rdf-schema#\" >\r\n    <!ENTITY rdf \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" >\r\n]>\r\n\r\n<Ontology xmlns=\"http://www.w3.org/2002/07/owl#\"\r\n     xml:base=\"http://www.semanticweb.org/andrea/ontologies/2016/10/untitled-ontology-83\"\r\n     xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\r\n     xmlns:xml=\"http://www.w3.org/XML/1998/namespace\"\r\n     xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\"\r\n     xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"\r\n     ontologyIRI=\"http://www.semanticweb.org/andrea/ontologies/2016/10/untitled-ontology-83\">\r\n    <Prefix name=\"owl\" IRI=\"http://www.w3.org/2002/07/owl#\"/>\r\n    <Prefix name=\"rdf\" IRI=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"/>\r\n    <Prefix name=\"xsd\" IRI=\"http://www.w3.org/2001/XMLSchema#\"/>\r\n    <Prefix name=\"rdfs\" IRI=\"http://www.w3.org/2000/01/rdf-schema#\"/>\r\n    <Declaration>\r\n        <Class IRI=\"#Person\"/>\r\n    </Declaration>\r\n    <Declaration>\r\n        <DataProperty IRI=\"#name\"/>\r\n    </Declaration>\r\n    <Declaration>\r\n        <NamedIndividual IRI=\"#t\"/>\r\n    </Declaration>\r\n    <ClassAssertion>\r\n        <Class IRI=\"#Person\"/>\r\n        <NamedIndividual IRI=\"#t\"/>\r\n    </ClassAssertion>\r\n    <DataPropertyAssertion>\r\n        <DataProperty IRI=\"#name\"/>\r\n        <NamedIndividual IRI=\"#t\"/>\r\n        <Literal datatypeIRI=\"&xsd;string\">Andrea</Literal>\r\n    </DataPropertyAssertion>\r\n    <DataPropertyRange>\r\n        <DataProperty IRI=\"#name\"/>\r\n        <Datatype abbreviatedIRI=\"xsd:string\"/>\r\n    </DataPropertyRange>\r\n</Ontology>\r\n```\r\n\r\nBy running this query:\r\n`SELECT ?x WHERE { PropertyValue(?y, my:name, ?x) }`\r\nI get this:\r\n`?de.derivo.sparqldlapi.Var@78 = ?\"Andrea\"^^xsd:string`\r\n\r\nI'm not able to get the individual, called t, having name equal to Andrea.\r\n`SELECT ?p WHERE { PropertyValue(?p, my:name, \"Andrea\") } `\r\nreturns an empty set \r\nand\r\n`SELECT ?p WHERE { PropertyValue(?p, my:name, \"Andrea^^xsd:string\") }`\r\nreturns an empty set.\r\n\r\n`SELECT ?y WHERE { PropertyValue(?y, my:name, \"Pluto\"^^xsd:string) }`\r\nreturns this error:\r\nCharacter \")\" awaited in SPARQL-DL query. (near \"^^xsd:string\", pos: 344, col: 52, row: 6)\r\n\r\nHow can I retrieve ontology individuals having a datatype property equal to a specific string value by using SPARQL-DL?\r\n"},"comment":{"url":"https://api.github.com/repos/protegeproject/sparql-dl-api/issues/comments/264517915","html_url":"https://github.com/protegeproject/sparql-dl-api/issues/3#issuecomment-264517915","issue_url":"https://api.github.com/repos/protegeproject/sparql-dl-api/issues/3","id":264517915,"user":{"login":"matthewhorridge","id":488607,"avatar_url":"https://avatars.githubusercontent.com/u/488607?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewhorridge","html_url":"https://github.com/matthewhorridge","followers_url":"https://api.github.com/users/matthewhorridge/followers","following_url":"https://api.github.com/users/matthewhorridge/following{/other_user}","gists_url":"https://api.github.com/users/matthewhorridge/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewhorridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewhorridge/subscriptions","organizations_url":"https://api.github.com/users/matthewhorridge/orgs","repos_url":"https://api.github.com/users/matthewhorridge/repos","events_url":"https://api.github.com/users/matthewhorridge/events{/privacy}","received_events_url":"https://api.github.com/users/matthewhorridge/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T17:54:42Z","updated_at":"2016-12-02T17:54:42Z","body":"Just another point in this.... \r\nYou should use this dependency for HermiT (which works with the latest versions of the OWL API)\r\n\r\n```xml\r\n<dependency>\r\n            <groupId>net.sourceforge.owlapi</groupId>\r\n            <artifactId>org.semanticweb.hermit</artifactId>\r\n            <version>1.3.8.413</version>\r\n</dependency>\r\n```"}}
{"actor":{"display_login":"matthewhorridge"}}