diff --git a/README.md b/README.md index e5fda40..aad9e51 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,15 @@ In order to contribute to forge federation we do here some experiments how to mo 4. spec is ways more readable compared to ttls reverse relation 'owl:domain' 5. we know clojure :-) +## Cool ideas + +We got feedback from cool people and have collected the ideas around: + +* https://github.com/ont-app/vocabulary - a cool way to map clojure namespaces to linked data cotexts. +* https://github.com/lambdaisland/souk - a poc reading jsonld from mastodon & provides a small webserver having the webfinger-protocol +* https://www.youtube.com/watch?v=cru7E96pLAM - youtube series for implementing the souk poc +* [doc/ideaForParsing.md](doc/ideaForParsing.md) - ideas for parsing with jena from a nice conversation with Eric Scott + ## Development & mirrors Development happens at: https://repo.prod.meissa.de/meissa/activity-pub-poc.git diff --git a/doc/id_ttl_to_rdf.md b/doc/id_ttl_to_rdf.md deleted file mode 100644 index d771931..0000000 --- a/doc/id_ttl_to_rdf.md +++ /dev/null @@ -1,32 +0,0 @@ -```ttl -as:id a owl:DatatypeProperty , - owl:FunctionalProperty, - owl:DeprecatedProperty ; - rdfs:label "id"@en ; - rdfs:range xsd:anyURI ; - rdfs:domain [ - a owl:Class ; - owl:unionOf (as:Link as:Object) - ] . -``` - -This ttl def can be written as rdf N-Triples: - -``` -as:id rdf:type owl:DatatypeProperty . -as:id rdf:type owl:FunctionalProperty . -as:id rdf:type owl:DeprecatedProperty . - -as:id rdfs:label "id"@en . - -as:id rdfs:range xsd:anyURI . - -as:id rdfs:domain _:do . -_:do rdf:type owl:Class . -_:do owl:unionOf (as:Link as:Object) . - ---- - -_:Object as:id "http://an.uri" -_:Object as:type _:do -``` \ No newline at end of file diff --git a/doc/ideaForParsing.md b/doc/ideaForParsing.md new file mode 100644 index 0000000..e0165f5 --- /dev/null +++ b/doc/ideaForParsing.md @@ -0,0 +1,24 @@ +I have logic in this module: https://github.com/ont-app/igraph-jena that uses Jena's parser, called 'riot'. + +https://jena.apache.org/documentation/ + +org.apache.jena/jena-arq {:mvn/version "4.9.0"} + +```clojure +ns ... +(:import + [org.apache.jena.riot + RDFDataMgr RDFFormat])) + +(defn read-rdf + [model rdf-file] +(try (RDFDataMgr/read model (str rdf-file)) + (catch Error e + (throw (ex-info "Jena riot error" + (merge + (ex-data e) + {:type ::RiotError + ::file-name (str rdf-file) + }))))) + model) +``` \ No newline at end of file diff --git a/doc/intro.md b/doc/intro.md deleted file mode 100644 index 2aab241..0000000 --- a/doc/intro.md +++ /dev/null @@ -1,3 +0,0 @@ -# Introduction to activity-pub-poc - -TODO: write [great documentation](http://jacobian.org/writing/what-to-write/)