Zach,
Blank node labels in RDF carry no meaning. Systematically renaming all blank
nodes doesn't change anything. It is very common for RDF tools to freely change
blank node labels. In the case of D2RQ, the blank node labels that you specify
in the mapping are retained throughout the engine, but the Jena/ARQ serializers
rename them when generating output.
If the actual label is important to you, then don't use a blank node.
(In fact, don't use blank nodes at all, unless you know what you're doing.
Almost no one understands them.)
Best,
Richard
On 26 Apr 2012, at 20:45, Zach Schweinfurth wrote:
> I have been working on some blank node mappings for the sp2 database. My
> mappings are below. As best I can tell d2r seems to be ignoring the
> table.column I specified for the relevant d2rq:bNodeIdColumns property. The
> values for the Person.stringid column are values such as Paul_Edroes.
>
> When I run, SELECT ?resourceid WHERE { ?resourceid a
> <http://xmlns.com/foaf/0.1/Person> } limit 10, to test the below mapping, I
> am getting results back in that look like
>
> _:b0, _:b1, etc. Based on the mapping, I was expecting the blank nodes to
> look something like _:Paul_Edroes, etc.
>
> Is the column specified in the d2rq:bNodeIdColumns used to create the blank
> nodes? If so, is there something incorrect with my mapping that is causing my
> blank nodes to be formed incorrectly?
>
> Thanks.
>
>
> Mapping:
>
> :Person_BlankNode_Map
> a d2rq:ClassMap ;
> d2rq:bNodeIdColumns "Person.stringid" ;
> d2rq:class foaf:Person ;
> d2rq:dataStorage :SP2_Database ;
> .
> --
>
> Zach
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> d2rq-map-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel