no-reply / rdf-yoda_triples

An RDF serialization for Jedi.
The Unlicense
8 stars 3 forks source link

RDF::YodaTriples should discourage using faster, quicker serializations #3

Open anarchivist opened 9 years ago

anarchivist commented 9 years ago
< If you choose the quick and easy path as
Vader did - you will become an agent of evil. >
        \
         \         ____
          \     _.' :  `._
            .-.'`.  ;   .'`.-.
   __      / : ___ ;  /___ ;  \      __
 ,'_ ""--.:__;".-.";: :".-.":__;.--"" _`,
 :' `.t""--.. '<@.`;_  ',@>` ..--""j.' `;
      `:-.._J '-.-'L__ `-- ' L_..-;'
        "-.__ ;  .-"  "-.  : __.-"
            L ' /.------. ' J
             "-.   "--"   .-"
            __.l"-:_JL_;-";.__
         .-j/'.;  ;""""  / .'"-.

Parsing YodaTriples should be an exercise in patience. Expedient serializations - and perhaps ones that are easy to read - should be discouraged.

no-reply commented 9 years ago

Maybe the module should put the above when required?

anarchivist commented 9 years ago

i think this should be reopened for now. @no-reply asked on #4:

So, require 'rdf/yoda_triples' should reopen RDF::Writer to add warnings?

that is my sense, yes. i also considered whether an exception is better, but my sense is that the choice is the up to the padawan, and not the Jedi master:

"It will be a hard life; one without reward, without remorse, without regret. A path will be placed before you. The choice is yours alone. Do what you think you cannot do. It will be a hard life, but you will find out who you are." ―Qui-Gon Jinn, to Anakin Skywalker