Sha256: 1fb1c90e44ff5c7143d74737871d0c9e40875be6da27a9077a1380e3c3dc4fb8
Contents?: true
Size: 2 KB
Versions: 1
Compression:
Stored size: 2 KB
Contents
require 'rdf/version' module RDF # RDF mixins autoload :Enumerable, 'rdf/enumerable' # RDF objects autoload :Graph, 'rdf/model/graph' autoload :Literal, 'rdf/model/literal' autoload :Node, 'rdf/model/node' autoload :Resource, 'rdf/model/resource' autoload :Statement, 'rdf/model/statement' autoload :URI, 'rdf/model/uri' autoload :Value, 'rdf/model/value' # RDF serialization autoload :Format, 'rdf/format' autoload :Reader, 'rdf/reader' autoload :Writer, 'rdf/writer' # RDF serialization formats autoload :NTriples, 'rdf/ntriples' # RDF storage autoload :Repository, 'rdf/repository' # RDF querying autoload :Query, 'rdf/query' # RDF vocabularies autoload :Vocabulary, 'rdf/vocab' autoload :CC, 'rdf/vocab/cc' autoload :DC, 'rdf/vocab/dc' autoload :DOAP, 'rdf/vocab/doap' autoload :EXIF, 'rdf/vocab/exif' autoload :FOAF, 'rdf/vocab/foaf' autoload :HTTP, 'rdf/vocab/http' autoload :OWL, 'rdf/vocab/owl' autoload :RDFS, 'rdf/vocab/rdfs' autoload :RSS, 'rdf/vocab/rss' autoload :SIOC, 'rdf/vocab/sioc' autoload :SKOS, 'rdf/vocab/skos' autoload :WOT, 'rdf/vocab/wot' autoload :XHTML, 'rdf/vocab/xhtml' autoload :XSD, 'rdf/vocab/xsd' ## # @return [String] uri # @return [Class] def self.Vocabulary(uri) Vocabulary.create(uri) end ## # @return [URI] def self.type self[:type] end ## # @return [#to_s] property # @return [URI] def self.[](property) RDF::URI.parse([to_s, property.to_s].join) end ## # @param [Symbol] property # @return [URI] # @raise [NoMethodError] def self.method_missing(property, *args, &block) if args.empty? self[property] else super end end ## # @return [URI] def self.to_uri RDF::URI.parse(to_s) end ## # @return [String] def self.to_s # FIXME "http://www.w3.org/1999/02/22-rdf-syntax-ns#" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rdf-0.0.7 | lib/rdf.rb |