Sha256: 6ee210ee657d8d1b844f39fab91151b52928a218febd9617273410c524cdadf0
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
Contents
module RDF::Turtle ## # RDFa format specification. # # @example Obtaining an Notation3 format class # RDF::Format.for("etc/foaf.ttl") # RDF::Format.for(:file_name => "etc/foaf.ttl") # RDF::Format.for(:file_extension => "ttl") # RDF::Format.for(:content_type => "text/turtle") # # @example Obtaining serialization format MIME types # RDF::Format.content_types #=> {"text/turtle" => [RDF::N3::Format]} # # @example Obtaining serialization format file extension mappings # RDF::Format.file_extensions #=> {:ttl => "text/turtle"} # # @see http://www.w3.org/TR/rdf-testcases/#ntriples class Format < RDF::Format content_type 'text/turtle', :extension => :ttl content_type 'text/rdf+turtle' content_type 'application/turtle' content_type 'application/x-turtle' content_encoding 'utf-8' reader { RDF::Turtle::Reader } writer { RDF::Turtle::Writer } end # Alias for TTL format # # This allows the following: # # @example Obtaining an TTL format class # RDF::Format.for(:ttl) # RDF::N3::TTL # RDF::Format.for(:ttl).reader # RDF::N3::Reader # RDF::Format.for(:ttl).writer # RDF::N3::Writer class TTL < RDF::Format reader { RDF::Turtle::Reader } writer { RDF::Turtle::Writer } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rdf-turtle-0.0.4 | lib/rdf/turtle/format.rb |
rdf-turtle-0.0.3 | lib/rdf/turtle/format.rb |
rdf-turtle-0.0.2 | lib/rdf/turtle/format.rb |