Skip to content

Instantly share code, notes, and snippets.

@niquola
Created January 29, 2023 08:54
Show Gist options
  • Save niquola/368f93f8c0f3e9e73ebf07c809533192 to your computer and use it in GitHub Desktop.
Save niquola/368f93f8c0f3e9e73ebf07c809533192 to your computer and use it in GitHub Desktop.

zd meta model is harmonized with https://www.w3.org/2000/01/rdf-schema zd can work with rdf schema and owl ontologies and export data as rdf

Resource

.zd file parsed into a resource - map with :zd.id zd.id is calculated from file path '[paths]/a/b/c.zd' => :zd.id = a.b.c

All resources are implicitly instances of rdf.Resource ( :rdf.type rdf.Resource )

References

Resource may refer other resource by symbol value with :zd.id

; books.na-dne
:text.author persons.maksim-gorki

Properties

Key values can be described as a resources as well. domain, range and datatype

; text.author
:rdf.type rdf.Property
:rdfs.domain text.Text
:rdfs.range  foaf.Person
:rdfs.subPropertyOf dcmi.creator

rdfs.subPropertyOf of property will force to deduce this key in data.

:text.author maxim-gorki
;; deduce from subProperty
:dcmi.creator maxim-gorki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment