Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turtle Rendition of JSON-LD #1

Closed
kidehen opened this issue May 4, 2023 · 2 comments
Closed

Turtle Rendition of JSON-LD #1

kidehen opened this issue May 4, 2023 · 2 comments

Comments

@kidehen
Copy link

kidehen commented May 4, 2023

Here's an RDF-Turtle rendition of the JSON-LD which can be added to the mix to broaden reader/reviewer audience etc..

## Turtle Start ##
@prefix : <#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://w3id.org/nostr#> rdf:type owl:Ontology .
<https://w3id.org/nostr#> dc:description "Nostr vocabulary." .
<https://w3id.org/nostr#> dc:title "Nostr vocabulary" .

<https://w3id.org/nostr#Event> rdf:type rdfs:Class .
<https://w3id.org/nostr#Event> rdfs:comment "An nostr event as lower case 64 character hex string." .
<https://w3id.org/nostr#Event> rdfs:label "Event" .
<https://w3id.org/nostr#Event> vs:term_status "stable" .

<https://w3id.org/nostr#Relay> rdf:type rdfs:Class .
<https://w3id.org/nostr#Relay> rdfs:comment "A nostr Relay as ws or wss URI." .
<https://w3id.org/nostr#Relay> rdfs:label "Relay" .
<https://w3id.org/nostr#Relay> vs:term_status "stable" .

<https://w3id.org/nostr#content> rdf:type rdfs:Property .
<https://w3id.org/nostr#content> rdfs:comment "content of event as an integer." .
<https://w3id.org/nostr#content> rdfs:domain <https://w3id.org/nostr#Event> .
<https://w3id.org/nostr#content> rdfs:isDefinedBy <https://w3id.org/nostr#> .
<https://w3id.org/nostr#content> rdfs:label "content" .
<https://w3id.org/nostr#content> rdfs:range xsd:string .
<https://w3id.org/nostr#content> vs:term_status "stable" .

<https://w3id.org/nostr#created_at> rdf:type rdfs:Property .
<https://w3id.org/nostr#created_at> rdfs:comment "created_at unix timestamp." .
<https://w3id.org/nostr#created_at> rdfs:domain <https://w3id.org/nostr#Event> .
<https://w3id.org/nostr#created_at> rdfs:isDefinedBy <https://w3id.org/nostr#> .
<https://w3id.org/nostr#created_at> rdfs:label "created_at" .
<https://w3id.org/nostr#created_at> rdfs:range xsd:integer .
<https://w3id.org/nostr#created_at> vs:term_status "stable" .

<https://w3id.org/nostr#kind> rdf:type rdfs:Property .
<https://w3id.org/nostr#kind> rdfs:comment "kind of event as an integer." .
<https://w3id.org/nostr#kind> rdfs:domain <https://w3id.org/nostr#Event> .
<https://w3id.org/nostr#kind> rdfs:isDefinedBy <https://w3id.org/nostr#> .
<https://w3id.org/nostr#kind> rdfs:label "kind" .
<https://w3id.org/nostr#kind> rdfs:range xsd:integer .
<https://w3id.org/nostr#kind> vs:term_status "stable" .

<https://w3id.org/nostr#pubkey> rdf:type rdfs:Property .
<https://w3id.org/nostr#pubkey> rdfs:comment "Nostr pubkey 64 char lower case hex." .
<https://w3id.org/nostr#pubkey> rdfs:domain <https://w3id.org/nostr#Event> .
<https://w3id.org/nostr#pubkey> rdfs:isDefinedBy <https://w3id.org/nostr#> .
<https://w3id.org/nostr#pubkey> rdfs:label "pubkey" .
<https://w3id.org/nostr#pubkey> rdfs:range xsd:string .
<https://w3id.org/nostr#pubkey> vs:term_status "stable" .

<https://w3id.org/nostr#sig> rdf:type rdfs:Property .
<https://w3id.org/nostr#sig> rdfs:comment "Schnorr signature of an event." .
<https://w3id.org/nostr#sig> rdfs:domain <https://w3id.org/nostr#Event> .
<https://w3id.org/nostr#sig> rdfs:isDefinedBy <https://w3id.org/nostr#> .
<https://w3id.org/nostr#sig> rdfs:label "sig" .
<https://w3id.org/nostr#sig> rdfs:range xsd:string .

<https://w3id.org/nostr#sig> vs:term_status "stable" .
<https://w3id.org/nostr#tags> rdf:type rdfs:Property .
<https://w3id.org/nostr#tags> rdfs:comment "array of arrays containing nostr tags." .
<https://w3id.org/nostr#tags> rdfs:domain <https://w3id.org/nostr#Event> .
<https://w3id.org/nostr#tags> rdfs:isDefinedBy <https://w3id.org/nostr#> .
<https://w3id.org/nostr#tags> rdfs:label "tags" .
<https://w3id.org/nostr#tags> rdfs:range owl:Thing .
<https://w3id.org/nostr#tags> vs:term_status "stable" .
## Turtle End ##
@melvincarvalho
Copy link
Contributor

Thanks!

Any idea how to do an array of arryays

@melvincarvalho
Copy link
Contributor

Thanks for the food for thought. Turtle is not currently used in the nostr eco system. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants