[
https://issues.apache.org/jira/browse/RYA-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15329993#comment-15329993
]
Aaron Mihalik commented on RYA-86:
----------------------------------
It appears like there is an issue with the Turtle Parser in OpenRdf 2.7.6. I
validated your issue with the following code (1)
The parser is not parsing the Subject correctly. Instead of resolving to
{{<http://www.somepublisher.com/img/f43240.jpg>}}, it resolves to
{{<http://www.somepublisher.com/img/f43240>}} and then it goes downhill from
there.
Since this is an OpenRdf issue, we can't provide an immediate fix. Instead,
we'll have to upgrade OpenRdf at some point.
Instead, you have a couple options:
1. Escape the periods in your URIs that have prefixes. For isntance,
{{images:f43240.jpg}} doesn't work but {{images:f43240\.jpg}} seems to work.
2. Remove the prefixes. For instance
{{<http://www.somepublisher.com/img/f43240.jpg>}} works just fine
3. Transform your data into another format. The example here (1) is a good
start to transforming your data to NTriples.
(1) https://gist.github.com/amihalik/9e8099be64ee232b75ec1b7edc2bea22
> Missing object in triple. Incorrect parsing?
> --------------------------------------------
>
> Key: RYA-86
> URL: https://issues.apache.org/jira/browse/RYA-86
> Project: Rya
> Issue Type: Bug
> Environment: rya develop + accumulo 1.6.5 on EMR 4.6.0 (Hadoop 2.6.0)
> Reporter: Kiet Ly
>
> I got an error loading the turtle file and complained about this triple below
> missing an object. Bug in parser?. Blazegraph has no problem with loading the
> file.
> images:f43240.jpg isi:hasMetadata <http://www.somepublisher.com/ns/m43240> .
> 16/06/14 16:40:03 ERROR helpers.ParseErrorLogger: [Rio fatal] Object for
> statement missing (6, -1)
> Here is the complete turtle file.
> @prefix images: <http://www.somepublisher.com/img/> .
> @prefix isi: <http://www.isi.edu/ikcap/Wingse/fileOntology.owl#> .
> images:f43240.jpg isi:hasMetadata <http://www.somepublisher.com/ns/m43240> .
> Same error with this file. Missing object again.
> @prefix images: <http://www.somepublisher.com/img/> .
> @prefix dc: <http://purl.org/dc/elements/1.1/> .
> images:f43240.jpg dc:creator "Richard Mutt" ;
> dc:title "Fountain" ;
> dc:format "jpeg" .
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)