Sha256: 85f9d73500843b284c76fcb877a25591b235c9fc0c88ad32df4f96457434afa5

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>query (SparqlAdapter)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre>    <span class="ruby-comment cmt"># File lib/activerdf_sparql/sparql.rb, line 42</span>
42:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query</span>(<span class="ruby-identifier">query</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
43:                 <span class="ruby-identifier">time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
44:     <span class="ruby-identifier">qs</span> = <span class="ruby-constant">Query2SPARQL</span>.<span class="ruby-identifier">translate</span>(<span class="ruby-identifier">query</span>)
45:                 <span class="ruby-identifier">execute_sparql_query</span>(<span class="ruby-identifier">qs</span>, <span class="ruby-identifier">header</span>(<span class="ruby-identifier">query</span>), <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
46:         <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerdf_sparql-1.3.5 doc/rdoc/classes/SparqlAdapter.src/M000003.html
activerdf_sparql-1.3.2 doc/rdoc/classes/SparqlAdapter.src/M000003.html
activerdf_sparql-1.3.4 doc/rdoc/classes/SparqlAdapter.src/M000003.html
activerdf_sparql-1.3.6 doc/rdoc/classes/SparqlAdapter.src/M000003.html