kasei / perlrdf

Deprecated in favor of the Attean package
26 stars 25 forks source link

doesn't support the URN scheme #159

Closed VladimirAlexiev closed 6 years ago

VladimirAlexiev commented 6 years ago

A URL like urn:uuid:8f340231-f5d4-4886-be63-c1f1b5c1ca77 (which is the result of the sparql uuid() function) causes this error: Use of undeclared prefix 'urn' at 66:1 (near 'urn:')

kasei commented 6 years ago

Can you please describe what you’re doing to get this error? Running a query? Parsing a file (rdf or query result)? Something else? Example data or code would be helpful in understanding the issue.

VladimirAlexiev commented 6 years ago

Parsing a file. I think this turtle will do it.

urn:uuid:8f340231-f5d4-4886-be63-c1f1b5c1ca77 a 
 urn:uuid:8f340231-f5d4-4886-be63-c1f1b5c1ca77 
kasei commented 6 years ago

This is not valid turtle. The urn IRIs should use <> quoting. As it is, the urns are being interpreted as prefix names that are using the “urn:” prefix, but no corresponding prefix declaration is found.

VladimirAlexiev commented 6 years ago

Sorry about that, my bad!

kasei commented 6 years ago

No worries!