Class Loader
In: lib/basicrdf.rb
Parent: Object

Methods

Attributes

base  [RW] 
files  [RW] 

Public Class methods

call out to an RDF2Ntriples parser

Loads an RDF file from filename

Very ugly, but at least its in the library now Fetch RDF from a URI uses a scratch file, which doesn‘t get locked or cleaned up. FIXME:

  • find out how to feed text to Expat / RDFParser directly
  • grab other HTTP code from scutter (gz etc?)

FIXME: hacks to get RDF from nice parser

URI (just a filename currently), returns a data graph (somehow)

this is all broke: shouldn‘t need to pass in the RDF parser

pull NTriples from somewhere, return them as a new Graph

clean up a term t and return litOK: flag whether literals acceptable or not

filename, returning ntriples as text

[Validate]