Closed GoogleCodeExporter closed 9 years ago
OK, I've had the time now to go back through the attached file to find that the
offending URI is :Bernard_of_Neufmarché as below. It
would appear that rdflib is sensitive to diacritics in URIs. The n3p.py does
not encode the UTF-8 characters it finds in URIs. Is this
intended or a bug? My understanding, fragile as it is, is that diacritics are
permitted in URIs, at least cwm and other rdf applications
I'm aware of don't seem to object to them.
:Brecon a :Place;
rdfs:label "Brecon";
:hasValuation "valuation £1,543";
:hasDynasty
:Miles_of_Gloucester_and_sons_Brecon,
:Braose_Brecon,
:Bohun_Brecon,
:Duchy_of_Lancaster;
:hasLord
:Henry_Bollingbroke,
:Bernard_of_Neufmarché .
Original comment by crumpj...@gmail.com
on 9 Jul 2009 at 8:06
[deleted comment]
Hi,
I have tried to parse an RDF graph from the SP2Bench datset. This dataset has a
some
prefixes like:
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
When I have tried to parse it using RDFLib graph...
g = Graph()
g.parse('sp2b.n3',format="n3") method I have got the following error:
raise ParseError("Invalid line: %r" % self.line)
rdflib.syntax.parsers.ntriples.ParseError: Invalid line: '@prefix dcterms:
<http://purl.org/dc/terms/> .'
Any help would be appriciated:
Manu:
manu.alem@gmail.com
Original comment by manu.a...@gmail.com
on 31 Jul 2009 at 4:48
Original comment by eik...@gmail.com
on 1 Feb 2010 at 8:22
Original comment by gromgull
on 1 Feb 2010 at 9:40
Fixed in r1755, test-case in test_n3.py
Original comment by gromgull
on 2 Feb 2010 at 9:41
Original issue reported on code.google.com by
crumpj...@gmail.com
on 17 Jun 2009 at 9:34Attachments: