write down some ideas collected
parent
f15712155b
commit
68e5703821
@ -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
|
||||
```
|
@ -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 New Issue