I am preparing a new version of solidTiddlywiki that use turtle files to store the tiddler.
I would like some comment on the choices I made for the vocabularies and ontologies to convert the tiddlywiki’s references to RDF.
this.ontology = {
"dc":"http://purl.org/dc/elements/1.1/",
"dcterms":"http://purl.org/dc/terms/",
"schema":"https://schema.org/",
"ex":"http://example.org/vocab#" // "ex" is needed : used as default tiddlywiki ontology
}
this.prefix = "";
Object.entries(this.ontology).forEach(
([key, value]) => {this.prefix = this.prefix+"\n@prefix "+key+": <"+value+"> ."}
)
// subject
this.subject = "\n\n<this>" ;
// tidlerKeys to turtle predicate
this.tiddlerKeys = {
"created":"schema:dateCreated",
"creator":"schema:creator",
"text":"schema:text",
"title":"dc:title",
"type":"dc:type",
"tags":"schema:keywords",
"modified":"schema:dateModified",
"modifier":"schema:contributor",
"_canonical_uri":"schema:url",
"draft.of":"ex:draft_of", // dot not allowed in RDF vocab
"draft.title":"ex:draft_title"} // dot not allowed in RDF vocab