From 0f99af1841444cc959c68628352ffd2b3d8cf11e Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Tue, 3 Mar 2026 19:15:05 +0100 Subject: [PATCH 1/3] add context to include in the generated data --- contexts/group.jsonld | 84 ++++++++++++++++++++++++++++++++++++++ contexts/repository.jsonld | 35 ++++++++++++++++ contexts/service.jsonld | 53 ++++++++++++++++++++++++ 3 files changed, 172 insertions(+) create mode 100644 contexts/group.jsonld create mode 100644 contexts/repository.jsonld create mode 100644 contexts/service.jsonld 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..fc0400e --- /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", + + "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": { + "@base": "https://github.com/", + "login": "@id", + "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" + } +} From ac9c9f011dd74f9fc30937d4d0ebc3777cb86fd2 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Wed, 4 Mar 2026 07:46:19 +0100 Subject: [PATCH 2/3] improve context for repositories --- contexts/repository.jsonld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contexts/repository.jsonld b/contexts/repository.jsonld index fc0400e..299cdeb 100644 --- a/contexts/repository.jsonld +++ b/contexts/repository.jsonld @@ -8,6 +8,7 @@ "@language": "en", + "html_url": "@id", "name": { "@id": "s:identifier", "@language": null @@ -22,8 +23,7 @@ "owner": { "@id": "s:owner", "@context": { - "@base": "https://github.com/", - "login": "@id", + "login": "s:identifier", "description": "s:description" } }, From 12b508726af629a65080c2fdce9de07a68d19f5a Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Wed, 4 Mar 2026 11:55:23 +0100 Subject: [PATCH 3/3] repositories' full URLs are under 'url' --- contexts/repository.jsonld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contexts/repository.jsonld b/contexts/repository.jsonld index 299cdeb..b6c2212 100644 --- a/contexts/repository.jsonld +++ b/contexts/repository.jsonld @@ -8,7 +8,7 @@ "@language": "en", - "html_url": "@id", + "url": "@id", "name": { "@id": "s:identifier", "@language": null