owned this note
owned this note
Published
Linked with GitHub
# HC Junto RDF/JSON-LD Structures
### Group Expression (keeping it simple now; just a name and description):
```jsonld=
{
"@context": {
"schema": "https://schema.org/",
"did": "https://www.w3.org/ns/did/v1/",
"sec": "https://w3id.org/security/v2/",
"foaf": "http://xmlns.com/foaf/0.1/"
},
"@type": "foaf:group",
"foaf:name": "string",
"schema:identifier": "langhash://exprhash",
"schema:description": "Test",
"schema:dateCreated": {
"@type": "schema:DateTime",
"@value": "ISO8601"
},
"schema:agent": {
"schema:email": "",
"schema:givenName": "",
"did:id": "did:junto:asdasd"
},
"sec:proof": {
"@type": "sec:EcdsaSecp256k1Signature2019",
"sec:created": "2020-03-30T20:54:52Z",
"sec:verificationMethod": "did:example:123#qfknmVDhMi3Uc190IHBRfBRqMgbEEBRzWOj1E9EmzwM",
"sec:proofPurpose": "authentication",
"sec:jws": "eyJhbGciOiJFUzI1NksiLCJiNjQ....."
}
}
```
### ShortForm Expression:
```jsonld=
{
"@context": {
"schema": "https://schema.org/",
"did": "https://www.w3.org/ns/did/v1/",
"sec": "https://w3id.org/security/v2/"
},
"@type": "schema:Intangible",
"schema:identifier": "langhash://exprhash",
"schema:description": "Test",
"schema:itemList": [
{
"@type": "schema:color",
"@value": "#000000"
},
...
],
"schema:dateCreated": {
"@type": "schema:DateTime",
"@value": "ISO8601"
},
"schema:agent": {
"schema:email": "",
"schema:givenName": "",
"did:id": "did:junto:asdasd"
},
"sec:proof": {
"@type": "sec:EcdsaSecp256k1Signature2019",
"sec:created": "2020-03-30T20:54:52Z",
"sec:verificationMethod": "did:example:123#qfknmVDhMi3Uc190IHBRfBRqMgbEEBRzWOj1E9EmzwM",
"sec:proofPurpose": "authentication",
"sec:jws": "eyJhbGciOiJFUzI1NksiLCJiNjQ....."
}
}
```
### Profile Expression (keeping it simple now; just a name):
```jsonld=
{
"@context": {
"schema": "https://schema.org/",
"did": "https://www.w3.org/ns/did/v1/",
"sec": "https://w3id.org/security/v2/",
"foaf": "http://xmlns.com/foaf/0.1/"
},
"@type": "foaf:OnlineAccount",
"foaf://accountName": "string",
"schema:dateCreated": {
"@type": "schema:DateTime",
"@value": "ISO8601"
},
"schema:agent": {
"schema:email": "",
"schema:givenName": "",
"did:id": "did:junto:asdasd"
},
"sec:proof": {
"@type": "sec:EcdsaSecp256k1Signature2019",
"sec:created": "2020-03-30T20:54:52Z",
"sec:verificationMethod": "did:example:123#qfknmVDhMi3Uc190IHBRfBRqMgbEEBRzWOj1E9EmzwM",
"sec:proofPurpose": "authentication",
"sec:jws": "eyJhbGciOiJFUzI1NksiLCJiNjQ....."
}
}
```
### Social Context Link Data/Structure:
(subject, predicate, object)
#### Source community:
```rdf
langhash://self -> rdf://type -> foaf://group
langhash://self -> rdf://class -> groupexp
langhash://self -> foaf://member -> profileExpLang://profileExp
langhash://self -> sioc://has_space -> langlang://sc-channel (foaf://group) //likely not allowed in RDF def
```
#### Sub Community Social Context (chat channel):
langlang://sc-channel (sioc://chatchannel):
```rdf
langhash://self -> rdf://type -> foaf://group
langhash://self -> rdf://class -> channelexp
langhash://self -> sioc://has_space -> sioc://chatchannel
langhash://self -> foaf://member -> profileExpLang://profileExp
sioc://chatchannel -> sioc://content_of -> expression (sioc://item)
langhash://self -> sioc://has_space -> langlang://sc-channel (sioc://chatchannel)
langhash://self -> sioc://has_space -> langlang://sc-channel (sioc://messageboard)
```
#### Sub Community Social Context (message board):
langlang://sc-channel (sioc://messageboard):
```rdf
langhash://self -> rdf://type -> foaf://group
langhash://self -> rdf://class -> channelexp
channelexp -> sioc://has_space -> sioc://messageboard
sioc://messageboard -> sioc://content_of -> expression (sioc://item)
langhash://self -> sioc://has_space -> langlang://sc-channel (sioc://chatchannel)
langhash://self -> sioc://has_space -> langlang://sc-channel (sioc://messageboard)
```
### Channel Expression
```jsonld=
{
"@context": {
"schema": "https://schema.org/",
"did": "https://www.w3.org/ns/did/v1/",
"sec": "https://w3id.org/security/v2/",
"sioc": "http://rdfs.org/sioc/ns#"
},
"@type": "sioc:Space",
"sioc:name": "string",
"schema:identifier": "langhash://exprhash",
"schema:description": "Test",
"schema:dateCreated": {
"@type": "schema:DateTime",
"@value": "ISO8601"
},
"schema:agent": {
"schema:email": "",
"schema:givenName": "",
"did:id": "did:junto:asdasd"
},
"sec:proof": {
"@type": "sec:EcdsaSecp256k1Signature2019",
"sec:created": "2020-03-30T20:54:52Z",
"sec:verificationMethod": "did:example:123#qfknmVDhMi3Uc190IHBRfBRqMgbEEBRzWOj1E9EmzwM",
"sec:proofPurpose": "authentication",
"sec:jws": "eyJhbGciOiJFUzI1NksiLCJiNjQ....."
}
}
```
### Ad4m Expression
```jsonld=
{
"@context": {
"schema": "https://schema.org/",
"did": "https://www.w3.org/ns/did/v1/",
"sec": "https://w3id.org/security/v2/",
"sioc": "http://rdfs.org/sioc/ns#",
"rdf": "https://www.w3.org/TR/rdf-schema/"
},
//Data
"rdfs:Resource": string,
"schema:agent": {
"schema:email": "",
"schema:givenName": "",
"did:id": "did:junto:asdasd"
},
"schema:dateCreated": {
"@type": "schema:DateTime",
"@value": "ISO8601"
},
"sec:proof": {
"@type": "sec:EcdsaSecp256k1Signature2019",
"sec:created": "2020-03-30T20:54:52Z",
"sec:verificationMethod": "did:example:123#qfknmVDhMi3Uc190IHBRfBRqMgbEEBRzWOj1E9EmzwM",
"sec:proofPurpose": "authentication",
"sec:jws": "eyJhbGciOiJFUzI1NksiLCJiNjQ....."
}
}
```
RDF viewer/playgroud: http://www.visualdataweb.de/webvowl/