{"comment":{"created_at":"2011-10-19T01:33:39Z","body":"Updated by gromgull on 2011-03-25T07:40:02\n\nThe rdflib behaviour appears to be right:\r\n\r\n\"{?S fb:object.type.name ?O} => {?S a fb:namedPerson}.\"\r\n\r\n is not valid n3, qnames cannot contain \".\" - look here: \r\n\r\nhttp://www.w3.org/2000/10/swap/grammar/n3-report.html#qname\r\n\r\nThere is no \".\" in the part of the regex after \":\"  \r\n\r\nThe solution would be to redefine the prefix and qname, i.e. instead of: \r\n\r\n@prefix fb : \r\nfb:object.type.name\r\n\r\nyou must have:\r\n\r\n@prefix fb : \r\nfb:name\n\nOriginal ticket set status to Started (we converted to open)","updated_at":"2011-10-19T01:33:39Z","url":"https://api.github.com/repos/gjhiggins/rdflib/issues/comments/2450865","id":2450865,"user":{"gravatar_id":"918398787dc9e085672703644972e5e4","avatar_url":"https://secure.gravatar.com/avatar/918398787dc9e085672703644972e5e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/gjhiggins","id":16417,"login":"gjhiggins"}},"action":"created","issue":{"number":163,"created_at":"2011-10-19T01:33:37Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Originally filed by fertap...@gmail.com on 2011-03-24T17:17:56\n\nHi,\r\nI'm using FuXi as inference engine, and it receives the rules expressed in N3 format. Everything goes ok until I need to put a Freebase predicate such as http://rdf.freebase.com/ns/object.type.name.\r\nThe N3 parser doesn't distinguish between the \"AND operator\" dot and the dots of the predicate's URI.\r\n\r\nThis is an example of a dot used as AND operator:\r\n{?P @has rdfs:range ?C. ?S ?P ?O} => {?O a ?C}.\r\n\r\nand this is my N3 rule:\r\n{?S fb:object.type.name ?O} => {?S a fb:namedPerson}.\r\n\r\n\r\nand I get the error:\r\nFile \"/Library/Python/2.6/site-packages/rdflib/plugins/parsers/notation3.py\", line 1198, in path\r\n    \"EOF found in middle of path syntax\")\r\nrdflib.plugins.parsers.notation3.BadSyntax: at line 44 of <>:\r\nBad syntax (EOF found in middle of path syntax) at ^ in:\r\n\"@prefix log: <http://www.w3.org/2000/10/swap/log#>.\r\n@prefix str: <http://www.w3.org/2000/10/swap/string#>.\r\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\r\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.\r\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\r\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\r\n@prefix e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#>.\r\n@prefix fb: <http://rdf.freebase.com/ns/>.\r\n@prefix cc: <http://creativecommons.org/ns#>.\r\n@prefix : <http://eulersharp.sourceforge.net/2003/03swap/rdfs-rules#>.\r\n\r\n\r\n### Resource Description Framework RDF(S)\r\n\r\nrdf:Alt rdfs:subClassOf rdfs:Container.\r\nrdf:Bag rdfs:subClassOf rdfs:Container.\r\nrdfs:ContainerMembershipProperty rdfs:subClassOf rdf:Property.\r\nrdfs:Datatype rdfs:subClassOf rdfs:Class.\r\nrdf:Seq rdfs:subClassOf rdfs:Container.\r\nrdf:XMLLiteral rdfs:subClassOf rdfs:Literal; a rdfs:Datatype.\r\n\r\nrdfs:comment rdfs:domain rdfs:Resource; rdfs:range rdfs:Literal.\r\nrdfs:domain rdfs:domain rdf:Property; rdfs:range rdfs:Class.\r\nrdf:first rdfs:domain rdf:List; rdfs:range rdfs:Resource; a owl:FunctionalProperty.\r\nrdfs:isDefinedBy rdfs:domain rdfs:Resource; rdfs:range rdfs:Resource; rdfs:subPropertyOf rdfs:seeAlso.\r\nrdfs:label rdfs:domain rdfs:Resource; rdfs:range rdfs:Literal.\r\nrdfs:member rdfs:domain rdfs:Container; rdfs:range rdfs:Resource.\r\nrdf:object rdfs:domain rdf:Statement; rdfs:range rdfs:Resource.\r\nrdf:predicate rdfs:domain rdf:Statement; rdfs:range rdf:Property.\r\nrdfs:range rdfs:domain rdf:Property; rdfs:range rdfs:Class.\r\nrdf:rest rdfs:domain rdf:List; rdfs:range rdf:List; a owl:FunctionalProperty.\r\nrdfs:seeAlso rdfs:domain rdfs:Resource; rdfs:range rdfs:Resource.\r\nrdfs:subClassOf rdfs:domain rdfs:Class; rdfs:range rdfs:Class.\r\nrdfs:subPropertyOf rdfs:domain rdf:Property; rdfs:range rdf:Property.\r\nrdf:subject rdfs:domain rdf:Statement; rdfs:range rdfs:Resource.\r\nrdf:type rdfs:domain rdfs:Resource; rdfs:range rdfs:Class.\r\nrdf:value rdfs:domain rdfs:Resource; rdfs:range rdfs:Resource.\r\n\r\nrdf:nil a rdf:List.\r\n\r\n\r\n### inference rules for RDF(S)\r\n\r\n{?S fb:object.type.name ?O} => {?S a fb:conNombre}^...\"\r\n\r\nThanks in advance","comments":1,"title":"Notation3 parser dot issue","updated_at":"2011-10-19T01:33:40Z","url":"https://api.github.com/repos/gjhiggins/rdflib/issues/163","id":1989709,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"918398787dc9e085672703644972e5e4","avatar_url":"https://secure.gravatar.com/avatar/918398787dc9e085672703644972e5e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/gjhiggins","id":16417,"login":"gjhiggins"},"html_url":"https://github.com/gjhiggins/rdflib/issues/163","labels":[],"state":"open"},"legacy":{"issue_id":1989709,"comment_id":2450865}}