Closed GoogleCodeExporter closed 8 years ago
The rdflib behaviour appears to be right:
"{?S fb:object.type.name ?O} => {?S a fb:namedPerson}."
is not valid n3, qnames cannot contain "." - look here:
http://www.w3.org/2000/10/swap/grammar/n3-report.html#qname
There is no "." in the part of the regex after ":"
The solution would be to redefine the prefix and qname, i.e. instead of:
@prefix fb : <http://rdf.freebase.com/ns/>
fb:object.type.name
you must have:
@prefix fb : <http://rdf.freebase.com/ns/object.type.>
fb:name
Original comment by gromgull
on 25 Mar 2011 at 7:40
Hi gromgull,
it worked. I tried to redefine the namespace earlier, but I had a typo error:
instead of object.type.name is type.object.name, and I directly thought that it
was a N3 parser error...what a stupid mistake.
Either way, thanks for your quick response.
Regards
Original comment by fertap...@gmail.com
on 25 Mar 2011 at 8:23
Original comment by gromgull
on 27 Aug 2011 at 6:48
Original issue reported on code.google.com by
fertap...@gmail.com
on 24 Mar 2011 at 5:17