W3C home > Mailing lists > Public > semantic-web@w3.org > July 2008

Re: RDF/OWL/Sparql and native XML databases

From: Story Henry <henry.story@bblfish.net>
Date: Thu, 10 Jul 2008 13:31:43 +0200
Cc: Olivier Rossel <olivier.rossel@gmail.com>, "Johnson, Matthew C. (LNG-HBE)" <Matthew.C.Johnson@lexisnexis.com>
Message-Id: <0E7FBE61-C3CF-453A-AE5F-E17CF796036A@bblfish.net>
To: "semantic-web@w3.org Web" <semantic-web@w3.org>, Polleres Axel <axel.polleres@deri.org>
Just a question on this. Is it easy to put data into graphs with  
XSPARQL?

XML allows one to say anything and it does not clearly distinguish  
contexts jumps. That means that a lot of xml out there is going to be  
data about data. Take the very simple atom entry below:

<entry>
      <title>syndeocms Project</title>
      <link href="http://doapspace.org/doap/sf/syndeocms"/>
      <id>http://doapspace.org/doap/sf/syndeocms</id>
      <updated>2007-12-13T18:30:02Z</updated>
      <summary>Some text..</summary>
      <content type="text/rdf+n3">
           @prefix doap: &lt;http://usefulinc.com/ns/doap#&gt; .
           &lt;http://projects.com/1&gt; a doap:Project;
                                         doap:name "Project 1" .
      </content>
</entry>

the xml in the content could be some other xml data format too, for  
example HR-XML.
A interesting translation of the above, where the content itself gets  
semantically transformed, would be in N3

@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix : <http://bblfish.net/work/atom-owl/2006-06-06/#> .

[] a :Entry
   :title "syndeocms Project";
   :alternate <http://doapspace.org/doap/sf/syndeocms>;
   :id "http://doapspace.org/doap/sf/syndeocms"^^xsd:anyURI;
   :updated "2007-12-13T18:30:02Z"^^xsd:dateTime;
   :summary "Some text";
   :contentGraph {
       <http://projects.com/1> a doap:Project;
                               doap:name "Project 1" .
   }

Note: It is interesting how this kind of context switch can make XPath  
expressions somewhat tricky to write, since if one is not careful one  
could xpath oneself through a context boundary to a piece of content  
that is not being affirmed.

Notice also how the entry has a content, that is a graph, but not a  
named one.
So of course one could just, as atom owl does, keep the content as a  
literal, but it would make queries across contexts opaque. I am  
thinking of transforms such as: I believe what Jim affirms Jane said  
on his trip to New York.

Henry



On 10 Jul 2008, at 12:14, Story Henry wrote:

> Very neat. I like the way this reduces the need to have to go  
> through an intermediate format to get the data into an rdf store.   
> Inversely it is very nice how it gets the rdf data into a simple xml  
> format.
>
> Henry
>
> On 10 Jul 2008, at 09:13, Olivier Rossel wrote:
>
>>
>> You may want to have a look at XSPARQL, that was presented at ESWC  
>> 2008:
>> http://www.eswc2008.org/final-pdfs-for-web-site/qpI-1.pdf
>> http://xsparql.deri.ie/
>



Received on Thursday, 10 July 2008 11:34:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:36:39 GMT