profile-pane 3.2.1 → 3.2.2-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/lib/303.profile-pane.js +1362 -0
- package/lib/303.profile-pane.js.map +1 -0
- package/lib/303.profile-pane.min.js +2 -0
- package/lib/303.profile-pane.min.js.map +1 -0
- package/lib/ProfileView.css +1090 -0
- package/lib/ProfileView.d.ts +2 -1
- package/lib/ProfileView.d.ts.map +1 -1
- package/lib/ProfileView.js +64 -36
- package/lib/buttonsHelper.d.ts +1 -1
- package/lib/buttonsHelper.d.ts.map +1 -1
- package/lib/buttonsHelper.js +2 -1
- package/lib/editProfilePane/EditCVCard.js +1 -1
- package/lib/editProfilePane/EditCommunitiesCard.js +1 -1
- package/lib/editProfilePane/EditFriendsCard.js +1 -1
- package/lib/editProfilePane/EditProfileView.d.ts +1 -1
- package/lib/editProfilePane/EditProfileView.d.ts.map +1 -1
- package/lib/editProfilePane/EditProfileView.js +4 -5
- package/lib/editProfilePane/editProfilePresenter.d.ts.map +1 -1
- package/lib/editProfilePane/editProfilePresenter.js +5 -4
- package/lib/icons-svg/profileIcons.d.ts +1 -1
- package/lib/icons-svg/profileIcons.d.ts.map +1 -1
- package/lib/icons-svg/profileIcons.js +9 -17
- package/lib/index.d.ts +1 -8
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +74 -40
- package/lib/ontology/otherPreferencesForm.ttl +32 -0
- package/lib/ontology/resumeForm.ttl +349 -0
- package/lib/ontology/socialMedia.ttl +433 -0
- package/lib/profile-pane.js +32266 -13247
- package/lib/profile-pane.js.map +1 -1
- package/lib/profile-pane.min.js +2315 -935
- package/lib/profile-pane.min.js.map +1 -1
- package/lib/rdfFormsHelper.d.ts +13 -1
- package/lib/rdfFormsHelper.d.ts.map +1 -1
- package/lib/rdfFormsHelper.js +13 -1
- package/lib/sections/bio/BioEditDialog.d.ts.map +1 -1
- package/lib/sections/bio/BioEditDialog.js +7 -7
- package/lib/sections/bio/BioSection.css +300 -0
- package/lib/sections/bio/BioSection.d.ts +3 -2
- package/lib/sections/bio/BioSection.d.ts.map +1 -1
- package/lib/sections/bio/BioSection.js +26 -19
- package/lib/sections/bio/mutations.d.ts.map +1 -1
- package/lib/sections/bio/mutations.js +14 -3
- package/lib/sections/contactInfo/ContactInfoEditDialog.css +354 -0
- package/lib/sections/contactInfo/ContactInfoEditDialog.d.ts +3 -1
- package/lib/sections/contactInfo/ContactInfoEditDialog.d.ts.map +1 -1
- package/lib/sections/contactInfo/ContactInfoEditDialog.js +183 -98
- package/lib/sections/contactInfo/ContactInfoSection.css +125 -0
- package/lib/sections/contactInfo/ContactInfoSection.d.ts +2 -0
- package/lib/sections/contactInfo/ContactInfoSection.d.ts.map +1 -1
- package/lib/sections/contactInfo/ContactInfoSection.js +64 -41
- package/lib/sections/contactInfo/mutations.d.ts.map +1 -1
- package/lib/sections/contactInfo/mutations.js +51 -16
- package/lib/sections/education/EducationEditDialog.d.ts +3 -1
- package/lib/sections/education/EducationEditDialog.d.ts.map +1 -1
- package/lib/sections/education/EducationEditDialog.js +170 -92
- package/lib/sections/education/EducationSection.css +133 -0
- package/lib/sections/education/EducationSection.d.ts +3 -2
- package/lib/sections/education/EducationSection.d.ts.map +1 -1
- package/lib/sections/education/EducationSection.js +32 -25
- package/lib/sections/education/mutations.d.ts.map +1 -1
- package/lib/sections/education/mutations.js +14 -3
- package/lib/sections/heading/HeadingEditDialog.d.ts +4 -1
- package/lib/sections/heading/HeadingEditDialog.d.ts.map +1 -1
- package/lib/sections/heading/HeadingEditDialog.js +287 -162
- package/lib/sections/heading/HeadingSection.css +862 -0
- package/lib/sections/heading/HeadingSection.d.ts +3 -2
- package/lib/sections/heading/HeadingSection.d.ts.map +1 -1
- package/lib/sections/heading/HeadingSection.js +63 -32
- package/lib/sections/heading/imageHelpers.d.ts +1 -0
- package/lib/sections/heading/imageHelpers.d.ts.map +1 -1
- package/lib/sections/heading/imageHelpers.js +40 -1
- package/lib/sections/heading/mutations.d.ts.map +1 -1
- package/lib/sections/heading/mutations.js +86 -23
- package/lib/sections/heading/selectors.d.ts.map +1 -1
- package/lib/sections/heading/selectors.js +14 -3
- package/lib/sections/heading/types.d.ts +1 -2
- package/lib/sections/heading/types.d.ts.map +1 -1
- package/lib/sections/languages/LanguageEditDialog.d.ts +3 -1
- package/lib/sections/languages/LanguageEditDialog.d.ts.map +1 -1
- package/lib/sections/languages/LanguageEditDialog.js +202 -119
- package/lib/sections/languages/LanguageSection.css +53 -0
- package/lib/sections/languages/LanguageSection.d.ts +2 -0
- package/lib/sections/languages/LanguageSection.d.ts.map +1 -1
- package/lib/sections/languages/LanguageSection.js +42 -31
- package/lib/sections/languages/mutations.d.ts.map +1 -1
- package/lib/sections/languages/mutations.js +60 -161
- package/lib/sections/languages/selectors.d.ts.map +1 -1
- package/lib/sections/languages/selectors.js +1 -2
- package/lib/sections/projects/ProjectEditDialog.d.ts +2 -1
- package/lib/sections/projects/ProjectEditDialog.d.ts.map +1 -1
- package/lib/sections/projects/ProjectEditDialog.js +13 -24
- package/lib/sections/projects/ProjectSection.css +368 -0
- package/lib/sections/projects/ProjectSection.d.ts +2 -1
- package/lib/sections/projects/ProjectSection.d.ts.map +1 -1
- package/lib/sections/projects/ProjectSection.js +116 -34
- package/lib/sections/projects/mutations.d.ts.map +1 -1
- package/lib/sections/projects/mutations.js +109 -132
- package/lib/sections/projects/selectors.d.ts.map +1 -1
- package/lib/sections/projects/selectors.js +4 -45
- package/lib/{QRCodeCard.d.ts → sections/qrcode/QRCodeCard.d.ts} +2 -1
- package/lib/sections/qrcode/QRCodeCard.d.ts.map +1 -0
- package/lib/{QRCodeCard.js → sections/qrcode/QRCodeCard.js} +59 -11
- package/lib/sections/qrcode/QRCodeSection.css +108 -0
- package/lib/sections/qrcode/QRCodeSection.d.ts +4 -0
- package/lib/sections/qrcode/QRCodeSection.d.ts.map +1 -0
- package/lib/sections/qrcode/QRCodeSection.js +17 -0
- package/lib/sections/resume/ResumeEditDialog.d.ts +10 -1
- package/lib/sections/resume/ResumeEditDialog.d.ts.map +1 -1
- package/lib/sections/resume/ResumeEditDialog.js +531 -149
- package/lib/sections/resume/ResumeSection.css +350 -0
- package/lib/sections/resume/ResumeSection.d.ts +3 -2
- package/lib/sections/resume/ResumeSection.d.ts.map +1 -1
- package/lib/sections/resume/ResumeSection.js +78 -49
- package/lib/sections/resume/mutations.d.ts.map +1 -1
- package/lib/sections/resume/mutations.js +17 -3
- package/lib/sections/resume/selectors.d.ts.map +1 -1
- package/lib/sections/resume/selectors.js +1 -0
- package/lib/sections/resume/types.d.ts +1 -0
- package/lib/sections/resume/types.d.ts.map +1 -1
- package/lib/sections/shared/collapsibleSection.d.ts.map +1 -1
- package/lib/sections/shared/collapsibleSection.js +1 -0
- package/lib/sections/shared/phoneCountries.d.ts +1 -1
- package/lib/sections/shared/phoneCountries.d.ts.map +1 -1
- package/lib/sections/shared/phoneCountries.js +2 -2
- package/lib/sections/shared/projectCommunityNodes.d.ts +6 -0
- package/lib/sections/shared/projectCommunityNodes.d.ts.map +1 -0
- package/lib/sections/shared/projectCommunityNodes.js +56 -0
- package/lib/sections/shared/rdfMutationHelpers.d.ts +35 -2
- package/lib/sections/shared/rdfMutationHelpers.d.ts.map +1 -1
- package/lib/sections/shared/rdfMutationHelpers.js +290 -14
- package/lib/sections/shared/sectionCardHelpers.d.ts.map +1 -1
- package/lib/sections/shared/sectionCardHelpers.js +80 -11
- package/lib/sections/shared/types.d.ts +24 -0
- package/lib/sections/shared/types.d.ts.map +1 -1
- package/lib/sections/skills/SkillsEditDialog.d.ts +3 -1
- package/lib/sections/skills/SkillsEditDialog.d.ts.map +1 -1
- package/lib/sections/skills/SkillsEditDialog.js +136 -115
- package/lib/sections/skills/SkillsSection.css +173 -0
- package/lib/sections/skills/SkillsSection.d.ts +2 -0
- package/lib/sections/skills/SkillsSection.d.ts.map +1 -1
- package/lib/sections/skills/SkillsSection.js +107 -47
- package/lib/sections/skills/mutations.d.ts.map +1 -1
- package/lib/sections/skills/mutations.js +25 -21
- package/lib/sections/skills/selectors.d.ts.map +1 -1
- package/lib/sections/skills/selectors.js +5 -3
- package/lib/sections/social/SocialEditDialog.d.ts +3 -1
- package/lib/sections/social/SocialEditDialog.d.ts.map +1 -1
- package/lib/sections/social/SocialEditDialog.js +170 -62
- package/lib/sections/social/SocialSection.css +194 -0
- package/lib/sections/social/SocialSection.d.ts +4 -3
- package/lib/sections/social/SocialSection.d.ts.map +1 -1
- package/lib/sections/social/SocialSection.js +59 -43
- package/lib/sections/social/mutations.d.ts.map +1 -1
- package/lib/sections/social/mutations.js +23 -132
- package/lib/specialButtons/AddMeToYourFriends.css +54 -0
- package/lib/specialButtons/addContact/AddMeToYourContacts.css +1118 -0
- package/lib/specialButtons/addContact/ContactCreationDialog.d.ts +10 -0
- package/lib/specialButtons/addContact/ContactCreationDialog.d.ts.map +1 -0
- package/lib/specialButtons/addContact/ContactCreationDialog.js +1123 -0
- package/lib/specialButtons/addContact/addMeToYourContacts.d.ts +16 -0
- package/lib/specialButtons/addContact/addMeToYourContacts.d.ts.map +1 -0
- package/lib/specialButtons/addContact/addMeToYourContacts.js +136 -0
- package/lib/specialButtons/addContact/contactsErrors.d.ts +8 -0
- package/lib/specialButtons/addContact/contactsErrors.d.ts.map +1 -0
- package/lib/specialButtons/addContact/contactsErrors.js +106 -0
- package/lib/specialButtons/addContact/contactsTypes.d.ts +43 -0
- package/lib/specialButtons/addContact/contactsTypes.d.ts.map +1 -0
- package/lib/specialButtons/addContact/contactsTypes.js +5 -0
- package/lib/specialButtons/addContact/helpers.d.ts +7 -0
- package/lib/specialButtons/addContact/helpers.d.ts.map +1 -0
- package/lib/specialButtons/addContact/helpers.js +103 -0
- package/lib/specialButtons/addContact/mutations.d.ts +16 -0
- package/lib/specialButtons/addContact/mutations.d.ts.map +1 -0
- package/lib/specialButtons/addContact/mutations.js +300 -0
- package/lib/specialButtons/addContact/selectors.d.ts +10 -0
- package/lib/specialButtons/addContact/selectors.d.ts.map +1 -0
- package/lib/specialButtons/addContact/selectors.js +163 -0
- package/lib/{addMeToYourFriends.d.ts → specialButtons/addMeToYourFriends.d.ts} +6 -4
- package/lib/specialButtons/addMeToYourFriends.d.ts.map +1 -0
- package/lib/{addMeToYourFriends.js → specialButtons/addMeToYourFriends.js} +46 -11
- package/lib/styles/CollapsibleSection.css +519 -0
- package/lib/styles/EditDialogs.css +506 -686
- package/lib/styles/EditDialogs.responsive.css +989 -0
- package/lib/texts/buttonTexts.d.ts +9 -0
- package/lib/texts/buttonTexts.d.ts.map +1 -0
- package/lib/texts/buttonTexts.js +14 -0
- package/lib/texts/dialogTexts.d.ts +14 -0
- package/lib/texts/dialogTexts.d.ts.map +1 -0
- package/lib/texts/dialogTexts.js +19 -0
- package/lib/texts/messageTexts.d.ts +42 -0
- package/lib/texts/messageTexts.d.ts.map +1 -0
- package/lib/texts/messageTexts.js +47 -0
- package/lib/texts/profileTexts.d.ts +14 -0
- package/lib/texts/profileTexts.d.ts.map +1 -0
- package/lib/texts/profileTexts.js +19 -0
- package/lib/texts/qrCodeTexts.d.ts +2 -0
- package/lib/texts/qrCodeTexts.d.ts.map +1 -0
- package/lib/texts/qrCodeTexts.js +7 -0
- package/lib/texts.d.ts +5 -60
- package/lib/texts.d.ts.map +1 -1
- package/lib/texts.js +55 -70
- package/lib/ui/dialog.css +233 -0
- package/lib/ui/dialog.d.ts +15 -1
- package/lib/ui/dialog.d.ts.map +1 -1
- package/lib/ui/dialog.js +245 -45
- package/lib/ui/dialog.responsive.css +195 -0
- package/lib/ui/errors.d.ts.map +1 -1
- package/lib/ui/errors.js +2 -1
- package/lib/ui/spinner.d.ts +3 -0
- package/lib/ui/spinner.d.ts.map +1 -0
- package/lib/ui/spinner.js +13 -0
- package/lib/utils/debug.d.ts +5 -0
- package/lib/utils/debug.d.ts.map +1 -0
- package/lib/utils/debug.js +23 -0
- package/lib/utils/errorDisplay.d.ts +2 -0
- package/lib/utils/errorDisplay.d.ts.map +1 -0
- package/lib/utils/errorDisplay.js +19 -0
- package/package.json +32 -25
- package/lib/ChatWithMe.d.ts +0 -7
- package/lib/ChatWithMe.d.ts.map +0 -1
- package/lib/ChatWithMe.js +0 -90
- package/lib/QRCodeCard.d.ts.map +0 -1
- package/lib/addMeToYourFriends.d.ts.map +0 -1
- package/lib/sections/heading/camera.d.ts +0 -19
- package/lib/sections/heading/camera.d.ts.map +0 -1
- package/lib/sections/heading/camera.js +0 -199
- package/lib/styles/BioSection.css +0 -77
- package/lib/styles/CVCard.css +0 -142
- package/lib/styles/ChatWithMe.css +0 -6
- package/lib/styles/ContactInfoEditDialog.css +0 -153
- package/lib/styles/EducationCard.css +0 -103
- package/lib/styles/HeadingSection.css +0 -309
- package/lib/styles/ProfileCard.css +0 -66
- package/lib/styles/ProfileView.css +0 -65
- package/lib/styles/ProjectsCard.css +0 -206
- package/lib/styles/QRCodeCard.css +0 -43
- package/lib/styles/SocialCard.css +0 -89
- package/lib/styles/dialog.css +0 -209
- package/lib/styles/utilities.css +0 -740
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@prefix os: <http://www.w3.org/2000/10/swap/os#> .
|
|
2
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
|
|
4
|
+
|
|
5
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#>.
|
|
6
|
+
@prefix solid: <http://www.w3.org/ns/solid/terms#>.
|
|
7
|
+
@prefix ui: <http://www.w3.org/ns/ui#>.
|
|
8
|
+
@prefix schema: <http://schema.org/>.
|
|
9
|
+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
|
|
10
|
+
@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.
|
|
11
|
+
@prefix wd: <http://www.wikidata.org/entity/>.
|
|
12
|
+
@prefix wdt: <http://www.wikidata.org/prop/direct/>.
|
|
13
|
+
|
|
14
|
+
@prefix : <#>.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
:this
|
|
18
|
+
<http://purl.org/dc/elements/1.1/title> "Other preferences form" ;
|
|
19
|
+
a ui:Form ;
|
|
20
|
+
ui:parts (
|
|
21
|
+
:styleGroup
|
|
22
|
+
).
|
|
23
|
+
|
|
24
|
+
:styleGroup a ui:Group; ui:weight 0;
|
|
25
|
+
ui:parts ( :styleHeading :backgroundColor :highlightColor ).
|
|
26
|
+
|
|
27
|
+
:styleHeading a ui:Heading; ui:contents "The style of your public profile".
|
|
28
|
+
|
|
29
|
+
:backgroundColor a ui:ColorField; ui:property solid:profileBackgroundColor;
|
|
30
|
+
ui:label "Background color"; ui:default "#ffffff".
|
|
31
|
+
:highlightColor a ui:ColorField; ui:property solid:profileHighlightColor;
|
|
32
|
+
ui:label "Highlight color"; ui:default "#000000".
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
@prefix os: <http://www.w3.org/2000/10/swap/os#> .
|
|
2
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
|
|
4
|
+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
|
|
5
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#>.
|
|
6
|
+
@prefix solid: <http://www.w3.org/ns/solid/terms#>.
|
|
7
|
+
@prefix ui: <http://www.w3.org/ns/ui#>.
|
|
8
|
+
@prefix schema: <http://schema.org/>.
|
|
9
|
+
@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.
|
|
10
|
+
@prefix org: <http://www.w3.org/ns/org#>.
|
|
11
|
+
@prefix esco: <http://data.europa.eu/esco/model#>.
|
|
12
|
+
@prefix wd: <http://www.wikidata.org/entity/>.
|
|
13
|
+
@prefix wdt: <http://www.wikidata.org/prop/direct/>.
|
|
14
|
+
@prefix l: <https://www.w3.org/ns/iana/language-code/>.
|
|
15
|
+
|
|
16
|
+
@prefix : <#>.
|
|
17
|
+
|
|
18
|
+
:this
|
|
19
|
+
<http://purl.org/dc/elements/1.1/title> "Resume form" ;
|
|
20
|
+
a ui:Form ;
|
|
21
|
+
ui:parts (
|
|
22
|
+
:CVGroup
|
|
23
|
+
:SkillsHeading :SkillsForm
|
|
24
|
+
:LanguagesHeading :LanguagesForm
|
|
25
|
+
).
|
|
26
|
+
|
|
27
|
+
# Curriculum Vitae: membership of organizations
|
|
28
|
+
|
|
29
|
+
:CVGroup a ui:Group;
|
|
30
|
+
ui:weight 1;
|
|
31
|
+
ui:parts (
|
|
32
|
+
:ResumeHeading
|
|
33
|
+
:involvementWithOrganizationsForm
|
|
34
|
+
).
|
|
35
|
+
|
|
36
|
+
:ResumeHeading a ui:Heading;
|
|
37
|
+
ui:contents "Add your work experience" .
|
|
38
|
+
|
|
39
|
+
:involvementWithOrganizationsForm a ui:Multiple;
|
|
40
|
+
ui:label "work experience";
|
|
41
|
+
ui:property org:member;
|
|
42
|
+
ui:reverse true; # link back from role to member
|
|
43
|
+
ui:ordered false; # Allow user to order CV secions rather than force date order? No.
|
|
44
|
+
ui:part :RoleMembershipForm.
|
|
45
|
+
|
|
46
|
+
org:member owl:inverse [ ui:label "Work experience" ]. # timelimited involvement
|
|
47
|
+
|
|
48
|
+
# This is a big important form for one of a series of roles in the list.
|
|
49
|
+
|
|
50
|
+
:RoleMembershipForm a ui:Group;
|
|
51
|
+
ui:weight 3;
|
|
52
|
+
ui:parts (
|
|
53
|
+
:MembershipFormHeading
|
|
54
|
+
:RoleClassifier
|
|
55
|
+
:roleNameField
|
|
56
|
+
:escoOccupationField
|
|
57
|
+
:orgField
|
|
58
|
+
:RoleDatesForm
|
|
59
|
+
:RoleDescriptionForm).
|
|
60
|
+
|
|
61
|
+
:MembershipFormHeading a ui:Heading;
|
|
62
|
+
ui:contents "Details of the role"@en, "Détailes de ce rôle"@fr .
|
|
63
|
+
|
|
64
|
+
:roleNameField a ui:SingleLineTextField;
|
|
65
|
+
ui:label "Job title";
|
|
66
|
+
ui:property vcard:role .
|
|
67
|
+
|
|
68
|
+
:escoOccupationField a ui:AutocompleteField;
|
|
69
|
+
ui:label "Find in occupation catalog";
|
|
70
|
+
ui:property org:role;
|
|
71
|
+
ui:dataSource :ESCO_Occupation_DataSource;
|
|
72
|
+
ui:targetClass schema:Occupation .
|
|
73
|
+
|
|
74
|
+
:ESCO_Occupation_DataSource a ui:DataSource;
|
|
75
|
+
schema:name "ESCO";
|
|
76
|
+
ui:targetClass schema:Occupation ;
|
|
77
|
+
schema:logo <https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif>;
|
|
78
|
+
ui:searchByNameURI "https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)&selectedVersion=v1.2.0".
|
|
79
|
+
|
|
80
|
+
:orgField a ui:Choice;
|
|
81
|
+
ui:label "For organization"@en, "Pour l'organisation"@fr;
|
|
82
|
+
ui:canMintNew true;
|
|
83
|
+
ui:use :OrganizationCreationForm ;
|
|
84
|
+
ui:property org:organization;
|
|
85
|
+
ui:from vcard:Organization .
|
|
86
|
+
|
|
87
|
+
vcard:Organization ui:creationForm :OrganizationCreationForm .
|
|
88
|
+
|
|
89
|
+
###### eposodes in one's career - Roles
|
|
90
|
+
|
|
91
|
+
:RoleClassifier a ui:Classifier;
|
|
92
|
+
ui:label "Job type"@en;
|
|
93
|
+
ui:category solid:Role .
|
|
94
|
+
|
|
95
|
+
:RoleDatesForm a ui:Options;
|
|
96
|
+
ui:dependingOn rdf:type;
|
|
97
|
+
ui:case
|
|
98
|
+
[ ui:for solid:PastRole; ui:use :TwoDateForm ],
|
|
99
|
+
[ ui:for solid:CurrentRole; ui:use :StartDateForm ],
|
|
100
|
+
[ ui:for solid:FutureRole; ui:use :StartDateForm ].
|
|
101
|
+
|
|
102
|
+
:TwoDateForm a ui:Group;
|
|
103
|
+
ui:weight 0;
|
|
104
|
+
ui:parts ( :StartDateForm :EndDateForm ) .
|
|
105
|
+
:StartDateForm a ui:DateField;
|
|
106
|
+
ui:label "Start"@en,"Début"@fr;
|
|
107
|
+
ui:property schema:startDate .
|
|
108
|
+
:EndDateForm a ui:DateField;
|
|
109
|
+
ui:label "End"@en,"Fin"@fr;
|
|
110
|
+
ui:property schema:endDate .
|
|
111
|
+
|
|
112
|
+
solid:Role a rdfs:Class;
|
|
113
|
+
owl:disjointUnionOf ( solid:PastRole solid:CurrentRole solid:FutureRole ) ;
|
|
114
|
+
owl:oneOf ( solid:CurrentRole solid:PastRole solid:FutureRole ). # Future Role too?
|
|
115
|
+
|
|
116
|
+
solid:PastRole a rdfs:Class; rdfs:label "Former role"@en, "Ancien rôle"@fr, "Vergangene Rolle"@de, "Rol anterior"@es .
|
|
117
|
+
solid:CurrentRole a rdfs:Class; rdfs:label "Current role"@en, "Rôle actuel"@fr, "Momentane Rolle"@de , "Rol actual"@es .
|
|
118
|
+
solid:FutureRole a rdfs:Class; rdfs:label "Future role"@en, "Rôle à venir"@fr, "Zukünftige Rolle"@de, "Rol futuro"@es .
|
|
119
|
+
|
|
120
|
+
:RoleDescriptionForm a ui:MultiLineTextField;
|
|
121
|
+
ui:property schema:description;
|
|
122
|
+
ui:label "Describe your role" .
|
|
123
|
+
|
|
124
|
+
###### Organizations
|
|
125
|
+
|
|
126
|
+
:OrganizationCreationForm a ui:Form;
|
|
127
|
+
schema:name "Form for editing an organization using public data" ;
|
|
128
|
+
ui:parts (
|
|
129
|
+
:OrgClassifier
|
|
130
|
+
:OrganizationNameField
|
|
131
|
+
:OrgSwitch
|
|
132
|
+
:homePageURIField ) .
|
|
133
|
+
|
|
134
|
+
:OrgClassifier a ui:Classifier;
|
|
135
|
+
ui:label "Type"@en;
|
|
136
|
+
ui:category solid:InterestingOrganization .
|
|
137
|
+
|
|
138
|
+
:OrgSwitch a ui:Options;
|
|
139
|
+
ui:dependingOn rdf:type;
|
|
140
|
+
ui:case
|
|
141
|
+
[ ui:for schema:Corporation; ui:use :CorporationForm ],
|
|
142
|
+
[ ui:for schema:GovernmentOrganization; ui:use :GovernmentOrganizationForm ],
|
|
143
|
+
[ ui:for schema:PerformingGroup; ui:use :PerformingGroupForm ],
|
|
144
|
+
[ ui:for schema:Project; ui:use :ProjectForm ],
|
|
145
|
+
[ ui:for schema:NGO; ui:use :NGOForm ],
|
|
146
|
+
[ ui:for schema:EducationalOrganization; ui:use :EducationalOrganizationForm ],
|
|
147
|
+
[ ui:for schema:ResearchOrganization; ui:use :ResearchOrganizationForm ],
|
|
148
|
+
[ ui:for schema:SportsOrganization; ui:use :SportsOrganizationForm ].
|
|
149
|
+
|
|
150
|
+
:OrganizationNameField a ui:SingleLineTextField ;
|
|
151
|
+
ui:label "Name";
|
|
152
|
+
ui:maxLength "200" ;
|
|
153
|
+
ui:property schema:name .
|
|
154
|
+
|
|
155
|
+
:homePageURIField a ui:NamedNodeURIField;
|
|
156
|
+
ui:label "Homepage"@en;
|
|
157
|
+
ui:property schema:uri .
|
|
158
|
+
|
|
159
|
+
# Ontology data to drive the :OrgClassifier classifier
|
|
160
|
+
solid:InterestingOrganization owl:disjointUnionOf (
|
|
161
|
+
# Airline - a Corporation
|
|
162
|
+
# Consortium - a Corporation or a NGO
|
|
163
|
+
schema:Corporation
|
|
164
|
+
schema:EducationalOrganization
|
|
165
|
+
schema:ResearchOrganization # Proposed. https://github.com/schemaorg/schemaorg/issues/2877
|
|
166
|
+
# FundingScheme - eh?
|
|
167
|
+
schema:GovernmentOrganization
|
|
168
|
+
# LibrarySystem
|
|
169
|
+
# LocalBusiness - Corporation
|
|
170
|
+
# MedicalOrganization - a Corporation or a NGO
|
|
171
|
+
schema:NGO
|
|
172
|
+
# NewsMediaOrganization - a Corporation or a NGO
|
|
173
|
+
schema:PerformingGroup # a band
|
|
174
|
+
schema:Project # like Solid
|
|
175
|
+
schema:SportsOrganization) .
|
|
176
|
+
|
|
177
|
+
# This until the schema.org ontology adopts it
|
|
178
|
+
schema:ResearchOrganization a rdfs:Class;
|
|
179
|
+
rdfs:label "Research Organization"@en, "Organization de Recherche"@fr ,"organización de investigación"@es,
|
|
180
|
+
"منظمة البحث"@ar, "अनुसंधान संगठन"@hi, "Forschungsorganisation"@de, "shirika la utafiti"@sw .
|
|
181
|
+
|
|
182
|
+
##### Depending on the type of org, chose a different form
|
|
183
|
+
|
|
184
|
+
#### Corporation
|
|
185
|
+
:CorporationForm a ui:Group;
|
|
186
|
+
ui:weight 0;
|
|
187
|
+
ui:parts (
|
|
188
|
+
:CorporationAutocomplete ) .
|
|
189
|
+
|
|
190
|
+
:CorporationAutocomplete a ui:AutocompleteField;
|
|
191
|
+
ui:label "Find in wikidata";
|
|
192
|
+
ui:targetClass <http://www.wikidata.org/entity/Q6881511>; # Enterprise
|
|
193
|
+
ui:property solid:publicId;
|
|
194
|
+
ui:dataSource :WikidataInstancesByName.
|
|
195
|
+
|
|
196
|
+
:WikidataInstancesByName a ui:DataSource ;
|
|
197
|
+
schema:name "Wikidata instances by name";
|
|
198
|
+
ui:endpoint "https://query.wikidata.org/sparql" ;
|
|
199
|
+
ui:searchByNameQuery """SELECT ?subject ?name
|
|
200
|
+
WHERE {
|
|
201
|
+
?klass wdt:P279* $(targetClass) .
|
|
202
|
+
?subject wdt:P31 ?klass .
|
|
203
|
+
?subject rdfs:label ?name.
|
|
204
|
+
FILTER regex(?name, "$(name)", "i")
|
|
205
|
+
} LIMIT $(limit) """ ;
|
|
206
|
+
|
|
207
|
+
# Note this form of the query is very experimental
|
|
208
|
+
ui:searchByName [ ui:construct { ?subject schema:name ?name } ;
|
|
209
|
+
ui:where { ?klass wdt:P279 ?targetClass .
|
|
210
|
+
?subject wdt:P31 ?klass; rdfs:label ?name .
|
|
211
|
+
};
|
|
212
|
+
].
|
|
213
|
+
|
|
214
|
+
#### Gouvernment
|
|
215
|
+
:GovernmentOrganizationForm a ui:Group;
|
|
216
|
+
ui:weight 0;
|
|
217
|
+
ui:parts (
|
|
218
|
+
:GovernmentOrganizationAutocomplete ) .
|
|
219
|
+
|
|
220
|
+
:GovernmentOrganizationAutocomplete
|
|
221
|
+
a ui:AutocompleteField; ui:label "Find in wikidata";
|
|
222
|
+
ui:targetClass <http://www.wikidata.org/entity/Q327333>; # GovernmentOrganization
|
|
223
|
+
ui:property solid:publicId;
|
|
224
|
+
ui:dataSource :WikidataInstancesByName.
|
|
225
|
+
|
|
226
|
+
#### Educational
|
|
227
|
+
:EducationalOrganizationForm a ui:Group;
|
|
228
|
+
ui:weight 1;
|
|
229
|
+
ui:parts (
|
|
230
|
+
:EducationalOrganizationAutocomplete ) .
|
|
231
|
+
|
|
232
|
+
:EducationalOrganizationAutocomplete
|
|
233
|
+
a ui:AutocompleteField; ui:label "Find in wikidata";
|
|
234
|
+
ui:targetClass <http://www.wikidata.org/entity/Q2385804>; # EducationalOrganization
|
|
235
|
+
ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.
|
|
236
|
+
|
|
237
|
+
#### Research Group
|
|
238
|
+
:ResearchOrganizationForm a ui:Group;
|
|
239
|
+
ui:weight 0;
|
|
240
|
+
ui:parts (
|
|
241
|
+
:ResearchOrganizationAutocomplete ) .
|
|
242
|
+
|
|
243
|
+
:ResearchOrganizationAutocomplete
|
|
244
|
+
a ui:AutocompleteField; ui:label "Find in wikidata";
|
|
245
|
+
ui:targetClass <http://www.wikidata.org/entity/Q31855>; # research institute
|
|
246
|
+
ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.
|
|
247
|
+
|
|
248
|
+
#### NGO
|
|
249
|
+
:NGOForm a ui:Group; ui:weight 0;
|
|
250
|
+
ui:parts (
|
|
251
|
+
:NGOAutocomplete ) .
|
|
252
|
+
|
|
253
|
+
:NGOAutocomplete
|
|
254
|
+
a ui:AutocompleteField; ui:label "Find in wikidata";
|
|
255
|
+
ui:targetClass <http://www.wikidata.org/entity/Q163740>; # Non-profit org
|
|
256
|
+
ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.
|
|
257
|
+
|
|
258
|
+
#### Performing group
|
|
259
|
+
:PerformingGroupForm a ui:Group;
|
|
260
|
+
ui:weight 0;
|
|
261
|
+
ui:parts (
|
|
262
|
+
:PerformingGroupAutocomplete ) .
|
|
263
|
+
|
|
264
|
+
:PerformingGroupAutocomplete
|
|
265
|
+
a ui:AutocompleteField; ui:label "Find in wikidata";
|
|
266
|
+
ui:targetClass <http://www.wikidata.org/entity/Q32178211>; # Music Org
|
|
267
|
+
ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.
|
|
268
|
+
|
|
269
|
+
#### Project
|
|
270
|
+
:ProjectForm a ui:Group;
|
|
271
|
+
ui:weight 0;
|
|
272
|
+
ui:parts (
|
|
273
|
+
:ProjectAutocomplete ) . # :ProjectAutocomplete - no: supress, as not in WD
|
|
274
|
+
|
|
275
|
+
:ProjectAutocomplete
|
|
276
|
+
a ui:AutocompleteField; ui:label "Find in wikidata";
|
|
277
|
+
ui:targetClass <http://www.wikidata.org/entity/Q170584>; # Project
|
|
278
|
+
ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.
|
|
279
|
+
|
|
280
|
+
#### Sports Organization
|
|
281
|
+
:SportsOrganizationForm a ui:Group;
|
|
282
|
+
ui:weight 0;
|
|
283
|
+
ui:parts (
|
|
284
|
+
:SportsOrganizationAutocomplete ) .
|
|
285
|
+
|
|
286
|
+
:SportsOrganizationAutocomplete
|
|
287
|
+
a ui:AutocompleteField; ui:label "Find in wikidata";
|
|
288
|
+
ui:targetClass <http://www.wikidata.org/entity/Q4438121>; # SportsOrganization
|
|
289
|
+
ui:property solid:publicId; ui:dataSource :WikidataInstancesByName.
|
|
290
|
+
|
|
291
|
+
#################### Skills
|
|
292
|
+
|
|
293
|
+
:SkillsHeading a ui:Heading;
|
|
294
|
+
ui:contents "Add your skills" .
|
|
295
|
+
|
|
296
|
+
:SkillsForm a ui:Multiple;
|
|
297
|
+
ui:label "skill";
|
|
298
|
+
ui:property schema:skills;
|
|
299
|
+
ui:ordered false; # Allow reader to order skills
|
|
300
|
+
ui:part :SkillForm.
|
|
301
|
+
|
|
302
|
+
:SkillForm a ui:Group; ui:weight 1; ui:parts ( :escoSkillField ).
|
|
303
|
+
|
|
304
|
+
:escoSkillField a ui:AutocompleteField;
|
|
305
|
+
ui:label "Find in skills catalog";
|
|
306
|
+
ui:property solid:publicId;
|
|
307
|
+
ui:dataSource :ESCO_Skill_DataSource;
|
|
308
|
+
ui:targetClass schema:Skill .
|
|
309
|
+
|
|
310
|
+
:ESCO_Skill_DataSource a ui:DataSource;
|
|
311
|
+
schema:name "ESCO skill";
|
|
312
|
+
ui:targetClass esco:Skill ;
|
|
313
|
+
schema:logo <https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif>;
|
|
314
|
+
ui:searchByNameURI "https://ec.europa.eu/esco/api/search?language=$(language)&limit=$(limit)&type=skill&text=$(name)&selectedVersion=v1.2.0".
|
|
315
|
+
|
|
316
|
+
#################### Languages
|
|
317
|
+
|
|
318
|
+
:LanguagesHeading a ui:Heading; ui:contents "Add your languages" .
|
|
319
|
+
|
|
320
|
+
:LanguagesForm a ui:Multiple;
|
|
321
|
+
ui:label "language";
|
|
322
|
+
ui:property schema:knowsLanguage;
|
|
323
|
+
ui:ordered true; # Allow user to order languages most important first.
|
|
324
|
+
ui:part :LanguageForm.
|
|
325
|
+
|
|
326
|
+
:LanguageForm a ui:Group; ui:weight 1; ui:parts ( :WikidataLanguageField ).
|
|
327
|
+
|
|
328
|
+
:WikidataLanguageField a ui:AutocompleteField;
|
|
329
|
+
ui:label "Language";
|
|
330
|
+
ui:property solid:publicId;
|
|
331
|
+
ui:dataSource :WikidataLanguageDataSource;
|
|
332
|
+
ui:targetClass schema:Language .
|
|
333
|
+
|
|
334
|
+
:WikidataLanguageDataSource
|
|
335
|
+
schema:name "Find in wikidata";
|
|
336
|
+
ui:endpoint "https://query.wikidata.org/sparql" ;
|
|
337
|
+
ui:objectURIBase <https://www.w3.org/ns/iana/language-code/>;
|
|
338
|
+
# Add this to any literal string returned as ?subject
|
|
339
|
+
ui:searchByNameQuery """SELECT ?item ?subject ?name
|
|
340
|
+
WHERE
|
|
341
|
+
{ ?item wdt:P305 ?subject .
|
|
342
|
+
OPTIONAL {?item rdfs:label ?name}
|
|
343
|
+
OPTIONAL {?item wdt:P1705 ?name}
|
|
344
|
+
FILTER regex(?name, "$(name)", "i")
|
|
345
|
+
FILTER regex(?subject, "^..$", "i")
|
|
346
|
+
}""" .
|
|
347
|
+
# Note we restrict code to two-letter codes with the second regex, so as to limit the deluge of languages
|
|
348
|
+
# Hope there are not any important ones which have three-letter codes.
|
|
349
|
+
# Omitted: SERVICE wikibase:label { bd:serviceParam wikibase:language "$(languages)". }
|