diff --git a/contexts/group.jsonld b/contexts/group.jsonld new file mode 100644 index 0000000..1ce7369 --- /dev/null +++ b/contexts/group.jsonld @@ -0,0 +1,84 @@ +{ + "@context": { + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "s": "http://schema.org/", + "w3c": "https://www.w3.org/ns/w3c#", + "@vocab": "x-todo:", + + "@language": "en", + + "creation-date": { + "@id": "s:dateCreated", + "@type": "xsd:date" + }, + "start-date": { + "@id": "s:startDate", + "@type": "xsd:date" + }, + "end-date": { + "@id": "s:endDate", + "@type": "xsd:date" + }, + "close-date": { + "@id": "s:dateDeleted", + "@type": "xsd:date" + }, + "description": "s:description", + "discr": null, + "group-type": { + "@id": "rdf:type", + "@type": "@vocab", + "@context": { + "bg": "w3c:BusinessGroup", + "cg": "w3c:CommunityGroup", + "ig": "w3c:InterestGroup", + "other": "w3c:OtherGroup", + "tf": "w3c:TaskForce", + "wg": "w3c:WorkingGroup" + } + }, + "id": "w3c:id", + "identifier": { + "@id": "w3c:groupId", + "@language": null + }, + "internal": null, + "is_closed": "w3c:isClosed", + "members": "s:member", + "name": "s:name", + "participants_list_public": "w3c:hasPublicParticipantList", + "services": { + "@id": "https://www.w3.org/ns/did#service", + "@context": [ + null, + "./service.jsonld" + ] + }, + "shortname": { + "@id": "w3c:shortname", + "@language": null + }, + "tr-publisher": "w3c:trPublisher", + "_links": { + "@id": "@nest", + "@context": { + "href": "@id", + "self": "@nest", + + "homepage": "s:mainEntityOfPage", + "join": "w3c:joinPage", + "pp-status": "w3c:iprPage", + + "active-charter": "w3c:link:active-charter", + "chairs": "w3c:link:chairs", + "charters": "w3c:link:charters", + "participations": "w3c:link:participations", + "services": "w3c:link:services", + "specifications": "w3c:link:specifications", + "team-contacts": "w3c:link:team-contacts", + "users": "w3c:link:users" + } + } + } +} diff --git a/contexts/repository.jsonld b/contexts/repository.jsonld new file mode 100644 index 0000000..b6c2212 --- /dev/null +++ b/contexts/repository.jsonld @@ -0,0 +1,35 @@ +{ + "@context": { + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "s": "http://schema.org/", + "w3c": "https://www.w3.org/ns/w3c#", + "@vocab": "x-todo:", + + "@language": "en", + + "url": "@id", + "name": { + "@id": "s:identifier", + "@language": null + }, + "homepageUrl": { + "@id": "s:url", + "@type": "@id" + }, + "description": "s:description", + "isArchived": "w3c:isArchived", + "isPrivate": "w3c:isPrivate", + "owner": { + "@id": "s:owner", + "@context": { + "login": "s:identifier", + "description": "s:description" + } + }, + "w3cjson": { + "@id": "w3cjson", + "@type": "@json" + } + } +} diff --git a/contexts/service.jsonld b/contexts/service.jsonld new file mode 100644 index 0000000..6adfbea --- /dev/null +++ b/contexts/service.jsonld @@ -0,0 +1,53 @@ +{ + "@context": { + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "s": "http://schema.org/", + "w3c": "https://www.w3.org/ns/w3c#", + "@vocab": "x-todo:", + + "@language": "en", + + "details": { + "@id": "@nest", + "@context": { + "closed": "w3c:isClosed", + "link": { + "@id": "s:serviceUrl", + "@type": "@id" + }, + "longdesc": "s:description", + "shortdesc": "rdfs:label", + "type": { + "@id": "rdf:type", + "@type": "@vocab", + "@context": { + "blog": "w3c:BlogService", + "chat": "w3c:ChatService", + "forum": "w3c:ForumService", + "lists": "w3c:ListsService", + "mastodon": "w3c:MastodonService", + "other": "w3c:OtherService", + "repository": "w3c:RepositoryService", + "rss": "w3c:RssService", + "slack": "w3c:SlackService", + "tracker": "w3c:TrackerService", + "wiki": "w3c:WikiService", + "x": "w3c:ServiceX" + } + }, + "_links": { + "@id": "@nest", + "@context": { + "href": "@id", + "self": "@nest", + + "groups": "w3c:link:groups" + } + } + } + }, + "href": null, + "title": "s:name" + } +}