venukb / any23

Automatically exported from code.google.com/p/any23
Apache License 2.0
0 stars 0 forks source link

Problem parsing turtle file #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Paste attached turtle content to any23 input form
2. Press convert button

What version of the product are you using?
current version at http://any23.org/

Please provide any additional information below.
This was reported by Thomas Steiner.

Original issue reported on code.google.com by fullerga...@gmail.com on 30 Aug 2010 at 11:06

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by michele.mostarda on 13 Sep 2010 at 3:41

GoogleCodeExporter commented 9 years ago
Taken in charge.

Original comment by michele.mostarda on 13 Sep 2010 at 3:43

GoogleCodeExporter commented 9 years ago
The problem was due to the missing definition of a default namespace. 
The turtle parser didn't assign a default namespace to the parsed document. 
This issue has been fixed at revision 956 by setting the default namespace to 
the input page URL (if passed by direct input it will correspond to 
"http://any23.org/tmp/").

To specify a new default namespace just use the 'prefix' directive as shown 
below:

   @prefix : <http://a.new.default/namespace> .

Original comment by michele.mostarda on 14 Sep 2010 at 1:01

GoogleCodeExporter commented 9 years ago
The last 5 lines of the attached sample [1] are not Turtle syntax but Notation3 
syntax as underlined 
in section 9.6 of the latest Turtle specification [2].

[1]
<http://d.opencalais.com/er/company/ralg-tr1r/09ccd7c3-a2fd-3f32-bac1-07a66ff1a9
b6> = <http://cb.semsol.org/company/youtube#self>.
<http://d.opencalais.com/er/company/ralg-tr1r/09ccd7c3-a2fd-3f32-bac1-07a66ff1a9
b6> = <http://dbpedia.org/resource/YouTube>.
<http://d.opencalais.com/er/company/ralg-tr1r/09ccd7c3-a2fd-3f32-bac1-07a66ff1a9
b6> = <http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000982f58>.
<http://d.opencalais.com/er/company/ralg-tr1r/09ccd7c3-a2fd-3f32-bac1-07a66ff1a9
b6> = <http://en.wikipedia.org/wiki/YouTube>.
<http://d.opencalais.com/er/company/ralg-tr1r/09ccd7c3-a2fd-3f32-bac1-07a66ff1a9
b6> = <http://www.crunchbase.com/company/youtube>.

[2] http://www.w3.org/TeamSubmission/turtle/

Original comment by michele.mostarda on 14 Sep 2010 at 1:18

GoogleCodeExporter commented 9 years ago

Original comment by michele.mostarda on 1 Jun 2011 at 2:52