Closed elf-pavlik closed 6 years ago
maybe i could do automatic conversion at least to turtle with:
$ rapper -o turtle https://raw.github.com/edumbill/doap/master/examples/doap-doap.rdf
+1 - would be great to see JSON-LD examples.
@pmackay if you want to contribute one, please do! meanwhile i'll at least work though converting some more examples to turtle.
If you make a JSON-LD example people will then begin to lobby you to "do it properly" which means that there is a JSON-LD "context file" available at the URL used in "@ context" declarations.
At schema.org we used the project homepage for that URL, and so eventually got it content negotiating HTML vs JSON-LD representations. I mention this as it bears upon question of which URL you use in @-context. Some but not all use the same URL as namespace URL.
:+1:
@danbri that brings me to the issue of asking you about HTML rendering of the FOAF schema and what you used. I'd like to render HTML docs if we're going to start content negotiation on the namespace URI
@ewilderj I originally wrote a horrid little Ruby script called specgen.rb, then it became .py, and there are a confusing range of forks and fixups of it floating around. I have no sense for the state of the art. If you want a solid Python library for RDF, rdflib seems to be it.
Since #56 is merged, perhaps this is resolved?
Yeah, since we have Turtle too, I can close it.
currently all examples us RDF-XML representation of RDF
many people find turtle more readable for human also recent development of json-ld brings another representation which i would expect becoming very popular