Sha256: b54e22329c23af21e46a9536f2e90347400bf55155c41a891461e95cdfeeb22e
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 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>load (RDFLite)</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_rdflite/rdflite.rb, line 155</span> 155: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load</span>(<span class="ruby-identifier">file</span>) 156: <span class="ruby-identifier">ntriples</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">readlines</span>(<span class="ruby-identifier">file</span>) 157: <span class="ruby-identifier">$activerdflog</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"read #{ntriples.size} triples from file #{file}"</span> 158: 159: <span class="ruby-comment cmt"># use filename as context</span> 160: <span class="ruby-identifier">context</span> = <span class="ruby-identifier">internalise</span>(<span class="ruby-constant">RDFS</span><span class="ruby-operator">::</span><span class="ruby-constant">Resource</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"file:#{file}"</span>)) 161: 162: <span class="ruby-identifier">add_ntriples</span>(<span class="ruby-identifier">ntriples</span>, <span class="ruby-identifier">context</span>) 163: <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerdf_rdflite-1.3 | doc/rdoc/classes/RDFLite.src/M000008.html |
activerdf_rdflite-1.4.1 | doc/rdoc/classes/RDFLite.src/M000008.html |