write down some ideas collected
This commit is contained in:
parent
f15712155b
commit
68e5703821
4 changed files with 33 additions and 35 deletions
|
@ -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'
|
4. spec is ways more readable compared to ttls reverse relation 'owl:domain'
|
||||||
5. we know clojure :-)
|
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 & mirrors
|
||||||
|
|
||||||
Development happens at: https://repo.prod.meissa.de/meissa/activity-pub-poc.git
|
Development happens at: https://repo.prod.meissa.de/meissa/activity-pub-poc.git
|
||||||
|
|
|
@ -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
|
|
||||||
```
|
|
24
doc/ideaForParsing.md
Normal file
24
doc/ideaForParsing.md
Normal file
|
@ -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)
|
||||||
|
```
|
|
@ -1,3 +0,0 @@
|
||||||
# Introduction to activity-pub-poc
|
|
||||||
|
|
||||||
TODO: write [great documentation](http://jacobian.org/writing/what-to-write/)
|
|
Loading…
Reference in a new issue