{"id":92,"date":"2005-08-21T21:42:34","date_gmt":"2005-08-22T01:42:34","guid":{"rendered":"http:\/\/crschmidt.net\/blog\/?p=92"},"modified":"2005-08-21T21:42:34","modified_gmt":"2005-08-22T01:42:34","slug":"we-dont-need-no-stinkin-rules","status":"publish","type":"post","link":"https:\/\/crschmidt.net\/blog\/archives\/92\/we-dont-need-no-stinkin-rules\/","title":{"rendered":"We Don&#8217;t Need No Stinkin Rules"},"content":{"rendered":"<p><a href=\"http:\/\/crschmidt.net\/noets\/117\"> SPARQL CONSTRUCT as rules<\/a> announces the inclusion in <a href=\"http:\/\/crschmidt.net\/julie\/\">julie<\/a> of SPARQL-CONSTRUCT based rule-like processing for the creation of additional statements to be added to julie.<\/p>\n<p>Basically, the syntax hasn&#8217;t changed much:<\/p>\n<p>^q CONSTRUCT {?p2 ?prop ?p. } WHERE { ?prop rdf:type &lt;http:\/\/www.w3.org\/2002\/07\/owl#SymmetricProperty&gt;. ?p ?prop ?p2. } returns:<br \/>\nTotal of 542 statements: Here&#8217;s the first three.<br \/>\n{(r0_r1114530965r33008), [http:\/\/purl.org\/vocab\/relationship\/colleagueOf], (r0_r1114530965r32995)}, {(r0_r1114530965r32998), [http:\/\/purl.org\/vocab\/relationship\/colleagueOf],  (r0_r1114530965r32995)},<br \/>\n{(r0_r1114689381r708), [http:\/\/purl.org\/vocab\/relationship\/colleagueOf], (r0_r1114530965r32995)}.<\/p>\n<p>This is to let you know what you&#8217;re getting yourself into. For example, you probably don&#8217;t want to add the rdfs:subClassOf relationship for everything: you&#8217;d be dealing with a heck of a lot of statements, enough to trap the bot for hours. Here, we can see that it&#8217;s a relatively reasonable subset of the model, so we can pass this construct result into the model: <\/p>\n<p>21:33:35 &lt; julie&gt;  Created 542 statements based on CONSTRUCT query: Model size changed by 481.<\/p>\n<p>You can see the queries and results in context in <a href=\"http:\/\/www.ilrt.bris.ac.uk\/discovery\/chatlogs\/swig\/2005-08-22#T01-27-57\">#swig logs<\/a>. <\/p>\n<p>I&#8217;d be interested to hear how people think this could be used, or if it&#8217;s useful in a more general sense. Would it be better to simply provide a temporary URI where people could fetch the data? Hm, that sounds almost like a useful service &#8211; POST data, get back a URI and some data after having parsed the data and stored it in a local location. Wonder if I&#8217;m the only person who could use that&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SPARQL CONSTRUCT as rules announces the inclusion in julie of SPARQL-CONSTRUCT based rule-like processing for the creation of additional statements to be added to julie. Basically, the syntax hasn&#8217;t changed much: ^q CONSTRUCT {?p2 ?prop ?p. } WHERE { ?prop rdf:type &lt;http:\/\/www.w3.org\/2002\/07\/owl#SymmetricProperty&gt;. ?p ?prop ?p2. } returns: Total of 542 statements: Here&#8217;s the first three. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,8,2,29],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-julie","category-rdfcat","category-semantic-web","category-sparql"],"_links":{"self":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":0,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"wp:attachment":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}