aboutsummaryrefslogtreecommitdiff
path: root/dump/triples.scm
AgeCommit message (Expand)Author
2023-07-21Rename 'gn-id' prefix to 'gn'...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Make the default ontology "gn-id:"...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Make string->identifier take optional keyword args...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Make prefix function have an optional ttl?...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Revert "Pass port as an optional argument"...This reverts commit 195ca590be5533935cf708d49fcb3736b3c78643. Munyoki Kilyungi
2023-07-21Pass port to scm->triples...* dump/triples.scm (scm->triples): Make define have an optional arg fn that defaults to "triple". Munyoki Kilyungi
2023-07-21Pass port as an optional argument...* dump/triples.scm (triple): Add port as an optional argument. Defaults to #t. This enables us to use triple to print to other ports E.g in the case of dumping documentation to a different file. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-05-26Re-organize dumping macros and associated functions...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-05-26Always use "~a" to output like "display"...Replacing "~s" with "~a" will print utf-8 characters correctly. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-05-26Return an empty string if args passed to ontology is empty...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-05-26Fix how a symbol is displayed in the final RDF...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-04-05Simplify pattern matching when checking for a node...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-04-05Use match syntax to print object correctly during dump...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-04-05Annotate fields with a custom scheme such as "^^xsd:datetime"...* dump.scm (annotate-field): New function. * dump/triples.scm (triple): Print a string as they appear with DISPLAY should they contain "\"" thus enabling a triple that looks like: gn:species_mus_musculus gn:name "Mouse"^^xsd:string Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-04-05Create a method to define ontologies as symbols...* dump/triples.scm: Export ontology. (ontology): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2022-10-30Move triple utilities to new module....* dump.scm (string->identifier, string-blank?, triple, prefix): Move to ... * dump/triples.scm: ... new file. * dump.scm: Import (dump triples). Arun Isaac