0.01
No commit activity in last 3 years
No release in over 3 years
Object Subject Predicate, mmgh?
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 1.1
 Project Readme

Yoda Triples

Object Subject Predicate, mmgh?

This way Yoda speaks: http://en.wikipedia.org/wiki/Object%E2%80%93subject%E2%80%93verb#Fictitious_languages.

Usage

graph = RDF::Graph.new
graph << RDF::Statement(RDF::URI('http://example.org/yoda'), RDF.type, RDF::URI('http://example.org/jedi'))
graph.dump :yodatriples
# => "<http://example.org/jedi> <http://example.org/yoda> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> mmgh?\n"

reader = RDF::Reader.for(:yodatriples)
reader.new(graph.dump(:yodatriples)).each_statement do |statement|
  puts statement.inspect
end

Specification

For more information, see the RDF 1.1 Y-Triples draft specification.

License

This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.