Re: Substantial comments on the DM Mapping

Ivan, Eric,

On 8 Aug 2011, at 12:21, Ivan Herman wrote:
> - Section 2. The text currently says:
> 
> "...RDF graph that is called the direct graph. This graph is composed of relative IRIs that may be resolved against a base IRI"
> 
> which seems to suggest that the RDF graph will have relative IRI-s in their nodes. I do not think that is correct: an RDF graph always uses absolute IRI-s. The usage of the base IRI is part of the generation process and/or the specific serialization of the graph, and not part of the final graph...

Yes, an RDF graph MUST contain only absolute IRIs.

The phrasing with relative IRIs is partially my fault, I suggested it early in the lifetime of this document, based on the observation that all IRIs in the direct graph share the same prefix. I thought phrasing it with relative IRIs would simplify the logic and the examples. This was probably a mistake.

A better way of conceptualising this:

“The input into the direct mapping is:
1. a database
2. a base IRI”

“All IRIs in the direct graph are obtained by concatenating to the base IRI.”

“The XYZ IRI is a concatenation of:
1. the base IRI,
2. a slash character “/”,
3. …”

The examples should be written as Turtle that uses the @base directive, like:

    @base <http://data.example.com/>.
    <table1/id=1> <table1/name> "Bob".

Here's what R2RML has to say about the base IRI:

>> The base IRI MUST be a valid IRI. It SHOULD end in a slash (“/”) character.
>> 
>> Note: Resolution of relative IRIs in R2RML uses simple string concatenation instead of the more complex algorithm defined in RFC 3986. This ensures that the original database value can be reconstructed from the generated IRI.

I think that the exact same mechanism would make sense for the DM.

Best,
Richard

Received on Monday, 8 August 2011 14:00:58 UTC