rdf

2023-06-22T00:05:19.940879Z

https://github.com/ont-app/vocabulary Among other things this has a new feature to encode RDF-style tagged literals:

> (voc/tag (short 42))
#voc/dstr "42^^xsd:short"
> (voc/untag #voc/dstr "42^^xsd:short")
42
> (type *1)
java.lang.Short
> (voc/tag 2.2 :unit/Meter)
#voc/dstr "2.2^^unit:Meter"
> (defn meters-to-feet [m] (* 3.280839895 m))
> (voc/untag #voc/dstr "2.2^^unit:Meter" #(-> % str read-string meters-to-feet))
7.217847769000001

2023-06-22T00:07:56.029349Z

Core module now includes declarations for http://qudt.org/schema/qudt/ and http://qudt.org/vocab/unit#

🙌 3