<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Embedding queries in RDF &#8211; FOAF Group example</title>
	<atom:link href="http://danbri.org/words/2008/01/22/260/feed" rel="self" type="application/rss+xml" />
	<link>http://danbri.org/words/2008/01/22/260</link>
	<description>the web, the world, us, you and them</description>
	<lastBuildDate>Thu, 11 Mar 2010 21:48:30 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: danbri&#8217;s foaf stories &#187; Language Expertise in FOAF: Speaks, Reads, Writes revisited</title>
		<link>http://danbri.org/words/2008/01/22/260/comment-page-1#comment-13863</link>
		<dc:creator>danbri&#8217;s foaf stories &#187; Language Expertise in FOAF: Speaks, Reads, Writes revisited</dc:creator>
		<pubDate>Mon, 10 Mar 2008 14:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://danbri.org/words/2008/01/22/260#comment-13863</guid>
		<description>[...] skills in terms of group membership, could be a way to go here. This is related to the idea of expressing group-membership criteria through writing SPARQL queries: we can talk about the Group of people who work for W3C. Or we can talk about the Group of people [...]</description>
		<content:encoded><![CDATA[<p>[...] skills in terms of group membership, could be a way to go here. This is related to the idea of expressing group-membership criteria through writing SPARQL queries: we can talk about the Group of people who work for W3C. Or we can talk about the Group of people [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo Sauermann</title>
		<link>http://danbri.org/words/2008/01/22/260/comment-page-1#comment-13497</link>
		<dc:creator>Leo Sauermann</dc:creator>
		<pubDate>Fri, 25 Jan 2008 08:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://danbri.org/words/2008/01/22/260#comment-13497</guid>
		<description>We did a similar thing by extending the Jena engine.

We augmented Jena&#039;s rules by adding sparql. 
Its much nicer than above thing, because the passing of parameters is much easier. Also, with rules, its obvious that &quot;something will happen&quot;, they are by definition dynamic, whereas RDF graphs are static. And, within Jena rules, you can always express graphs using N-Triple Axioms.

code is in this folder
http://gnowsis.opendfki.de/browser/tags/0.8.3-alpha/gnowsis_retrieval/WEB-INF/src/org/gnowsis/retrieval/RuleQuerySparql.java

documentation:
http://gnowsis.opendfki.de/browser/tags/0.8.3-alpha/gnowsis_retrieval/doc/help.html</description>
		<content:encoded><![CDATA[<p>We did a similar thing by extending the Jena engine.</p>
<p>We augmented Jena&#8217;s rules by adding sparql.<br />
Its much nicer than above thing, because the passing of parameters is much easier. Also, with rules, its obvious that &#8220;something will happen&#8221;, they are by definition dynamic, whereas RDF graphs are static. And, within Jena rules, you can always express graphs using N-Triple Axioms.</p>
<p>code is in this folder<br />
<a href="http://gnowsis.opendfki.de/browser/tags/0.8.3-alpha/gnowsis_retrieval/WEB-INF/src/org/gnowsis/retrieval/RuleQuerySparql.java" rel="nofollow">http://gnowsis.opendfki.de/browser/tags/0.8.3-alpha/gnowsis_retrieval/WEB-INF/src/org/gnowsis/retrieval/RuleQuerySparql.java</a></p>
<p>documentation:<br />
<a href="http://gnowsis.opendfki.de/browser/tags/0.8.3-alpha/gnowsis_retrieval/doc/help.html" rel="nofollow">http://gnowsis.opendfki.de/browser/tags/0.8.3-alpha/gnowsis_retrieval/doc/help.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ldodds</title>
		<link>http://danbri.org/words/2008/01/22/260/comment-page-1#comment-13478</link>
		<dc:creator>ldodds</dc:creator>
		<pubDate>Tue, 22 Jan 2008 10:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://danbri.org/words/2008/01/22/260#comment-13478</guid>
		<description>Hi Dan,

Personally I like the idea of publishing and sharing queries. In fact I argued that the SPARQL protocol ought to include a &quot;by reference&quot; option that would allow queries to be linked to as a parameter, rather than embedded in the query string to support and encouraged that kind of usage.

However I&#039;m not so keen on the idea of embedding queries in the RDF like this. Mainly for the workflow reasons that you mention in the posting: the client needs to have a SPARQL engine, etc. An alternative, more RESTful approach would be to simply /link/ to where the data can be reconstituted.

Why not just have an rdfs:seeAlso or related (sub?) property whose URI is a SPARQL endpoint query. This means that the workflow is much simpler for the client: they just have to de-reference the relevant URI.

If the protocol supported by-reference queries then you still gain the benefit of sharing the query, as if I want to reuse it in other contexts I don&#039;t have to unpick it from your URI.

Cheers,

L.</description>
		<content:encoded><![CDATA[<p>Hi Dan,</p>
<p>Personally I like the idea of publishing and sharing queries. In fact I argued that the SPARQL protocol ought to include a &#8220;by reference&#8221; option that would allow queries to be linked to as a parameter, rather than embedded in the query string to support and encouraged that kind of usage.</p>
<p>However I&#8217;m not so keen on the idea of embedding queries in the RDF like this. Mainly for the workflow reasons that you mention in the posting: the client needs to have a SPARQL engine, etc. An alternative, more RESTful approach would be to simply /link/ to where the data can be reconstituted.</p>
<p>Why not just have an rdfs:seeAlso or related (sub?) property whose URI is a SPARQL endpoint query. This means that the workflow is much simpler for the client: they just have to de-reference the relevant URI.</p>
<p>If the protocol supported by-reference queries then you still gain the benefit of sharing the query, as if I want to reuse it in other contexts I don&#8217;t have to unpick it from your URI.</p>
<p>Cheers,</p>
<p>L.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
