Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
],
"license": "MIT",
"dependencies": {
"@solid/object": "^0.4.0",
"rdfjs-wrapper": "^0.15.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/mod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export * from "./acp/mod.js"
export * from "./solid/mod.js"
export * from "./webid/mod.js"


52 changes: 52 additions & 0 deletions src/solid/Meeting.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { TermMappings, ValueMappings, TermWrapper, DatasetWrapper } from "rdfjs-wrapper"
import { ICAL } from "../vocabulary/mod.js"


export class MeetingDataset extends DatasetWrapper {
get meeting(): Iterable<Meeting> {
return this.instancesOf(ICAL.vevent, Meeting)
}
}

export class Meeting extends TermWrapper {
get summary(): string | undefined {
return this.singularNullable(ICAL.summary, ValueMappings.literalToString)
}

set summary(value: string | undefined) {
this.overwriteNullable(ICAL.summary, value, TermMappings.stringToLiteral)
}

get location(): string | undefined {
return this.singularNullable(ICAL.location, ValueMappings.literalToString)
}

set location(value: string | undefined) {
this.overwriteNullable(ICAL.location, value, TermMappings.stringToLiteral)
}

get comment(): string | undefined {
return this.singularNullable(ICAL.comment, ValueMappings.literalToString)
}

set comment(value: string | undefined) {
this.overwriteNullable(ICAL.comment, value, TermMappings.stringToLiteral)
}

get startDate(): Date | undefined {
return this.singularNullable(ICAL.dtstart, ValueMappings.literalToDate)
}

set startDate(value: Date | undefined) {
this.overwriteNullable(ICAL.dtstart, value, TermMappings.dateToLiteral)
}

get endDate(): Date | undefined {
return this.singularNullable(ICAL.dtend, ValueMappings.literalToDate)
}

set endDate(value: Date | undefined) {
this.overwriteNullable(ICAL.dtend, value, TermMappings.dateToLiteral)
}

}
1 change: 1 addition & 0 deletions src/solid/mod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from "./Container.js"
export * from "./ContainerDataset.js"
export * from "./Resource.js"
export * from "./Meeting.js"
19 changes: 16 additions & 3 deletions src/vocabulary/foaf.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
export const FOAF = {
isPrimaryTopicOf: "http://xmlns.com/foaf/0.1/isPrimaryTopicOf",
primaryTopic: "http://xmlns.com/foaf/0.1/primaryTopic",
name: "http://xmlns.com/foaf/0.1/name",
account: "http://xmlns.com/foaf/0.1/account",
accountName: "http://xmlns.com/foaf/0.1/accountName",
email: "http://xmlns.com/foaf/0.1/email",
homepage: "http://xmlns.com/foaf/0.1/homepage",
icon: "http://xmlns.com/foaf/0.1/icon",
isPrimaryTopicOf: "http://xmlns.com/foaf/0.1/isPrimaryTopicOf",
knows: "http://xmlns.com/foaf/0.1/knows",
maker: "http://xmlns.com/foaf/0.1/maker",
name: "http://xmlns.com/foaf/0.1/name",
nick: "http://xmlns.com/foaf/0.1/nick",
primaryTopic: "http://xmlns.com/foaf/0.1/primaryTopic",


Account: "http://xmlns.com/foaf/0.1/Account",
OnlineAccount: "http://xmlns.com/foaf/0.1/OnlineAccount",
Person: "http://xmlns.com/foaf/0.1/Person",
PersonalProfileDocument: "http://xmlns.com/foaf/0.1/PersonalProfileDocument",


} as const;
1 change: 1 addition & 0 deletions src/vocabulary/ical.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export const ICAL = {
dtstart: "http://www.w3.org/2002/12/cal/ical#dtstart",
location: "http://www.w3.org/2002/12/cal/ical#location",
summary: "http://www.w3.org/2002/12/cal/ical#summary",
vevent: "http://www.w3.org/2002/12/cal/ical#Vevent"
} as const;
3 changes: 3 additions & 0 deletions src/vocabulary/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ export * from "./rdf.js"
export * from "./rdfs.js"
export * from "./solid.js"
export * from "./vcard.js"
export * from "./ical.js"
export * from "./schema.js"
export * from "./org.js"
7 changes: 7 additions & 0 deletions src/vocabulary/org.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const ORG = {


member: "http://www.w3.org/ns/org#member",
organization: "http://www.w3.org/ns/org#organization",
role: "http://www.w3.org/ns/org#role"
}
12 changes: 12 additions & 0 deletions src/vocabulary/schema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export const SCHEMA = {
knowsLanguage: "https://schema.org/knowsLanguage",
Organization: "https://schema.org/Organization",
skills: "https://schema.org/skills",
startDate: "https://schema.org/startDate",
endDate: "https://schema.org/endDate",
description: "https://schema.org/description",
name: "https://schema.org/name",
uri: "https://schema.org/uri",
} as const;


22 changes: 22 additions & 0 deletions src/vocabulary/soc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export const SOC = {
BlueSkyAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#BlueSkyAccount",
Digg: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#Digg",
FacebookAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#FacebookAccount",
GithubAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#GithubAccount",
InstagramAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#InstagramAccount",
LinkedInAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#LinkedInAccount",
MastodonAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#MastodonAccount",
MatrixAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#MatrixAccount",
MediumAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#MediumAccount",
NostrAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#NostrAccount",
OrcidAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#OrcidAccount",
PinterestAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#PinterestAccount",
RedditAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#RedditAccount",
SnapchatAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#SnapchatAccount",
StravaAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#StravaAccount",
TiktokAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#TiktokAccount",
TumblrAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#TumblrAccount",
TwitterAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#TwitterAccount",
OtherAccount: "https://solidos.github.io/profile-pane/src/ontology/socialMedia.ttl#OtherAccount",
};

17 changes: 16 additions & 1 deletion src/vocabulary/solid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
export const SOLID = {
oidcIssuer: "http://www.w3.org/ns/solid/terms#oidcIssuer",
storage: "http://www.w3.org/ns/solid/terms#storage",
} as const;
preferredSubjectPronoun: "http://www.w3.org/ns/solid/terms#preferredSubjectPronoun",
preferredObjectPronoun: "http://www.w3.org/ns/solid/terms#preferredObjectPronoun",
preferredRelativePronoun: "http://www.w3.org/ns/solid/terms#preferredRelativePronoun",
publicId: "http://www.w3.org/ns/solid/terms#publicId",


// the following terms are not defined but are present in https://github.com/SolidOS/profile-pane/blob/main/src/ontology/profileForm.ttl
Role: "http://www.w3.org/ns/solid/terms#Role",
CurrentRole: "http://www.w3.org/ns/solid/terms#CurrentRole",
FormerRole: "http://www.w3.org/ns/solid/terms#FormerRole",
FutureRole: "http://www.w3.org/ns/solid/terms#FutureRole",



}

Loading