walidazizi / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

problem with parsing owl file #171

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Parse an ontology from either an rdf-xml or n3 file format
2. Cycle through the tuples and print them 

What is the expected output? What do you see instead?

The expected output for each tuple would be something like:
http://www.semanticweb.org/ontologies/2011/2/18/Ontology1300476868828.owl#Messag
eQuestion

However, we get some tuples with strange contents like:
f15949072b80

What version of the product are you using? On what operating system?
I am using RDFLib 3.1.

The souce code is in attachment.

Thanks in advance.

Susana

Original issue reported on code.google.com by susana.m...@gmail.com on 7 May 2011 at 6:40

GoogleCodeExporter commented 8 years ago
Did you attach the file? I can't reproduce the stated problem without the file

Original comment by danielmr...@gmail.com on 8 May 2011 at 10:32

GoogleCodeExporter commented 8 years ago
I'm sorry Daniel, I didn't see that the max size of an attachment were 10Mb... 
i guess this was the reason =P

Thank you.

Original comment by susana.m...@gmail.com on 8 May 2011 at 12:55

Attachments:

GoogleCodeExporter commented 8 years ago
The triples you parse are blank nodes (isinstance(s, BNode)). rdflib generates 
a unique random id for them, that is where "f15949072b80" is coming from. I 
think everything works fine here.

Original comment by danielmr...@gmail.com on 9 May 2011 at 7:44

GoogleCodeExporter commented 8 years ago
i think Daniel is right - this works as intended. 

Original comment by gromgull on 19 Aug 2011 at 6:10