-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Wouter Termont <[email protected]> Co-authored-by: Wout Slabbinck <[email protected]>
- Loading branch information
1 parent
94e8cf4
commit 1839a7c
Showing
22 changed files
with
709 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@solidlab/derived-resources-component/^1.0.0/components/context.jsonld" | ||
], | ||
"@graph": [ | ||
{ | ||
"@id": "urn:solid-server:derived:PodResourcesOverride", | ||
"@type": "Override", | ||
"overrideInstance": { | ||
"@id": "urn:solid-server:default:PodResourcesGenerator" | ||
}, | ||
"overrideParameters": { | ||
"@type": "StaticFolderGenerator", | ||
"templateFolder": "templates/pod", | ||
"resourcesGenerator": { | ||
"@id": "urn:solid-server:default:TemplatedResourcesGenerator" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld", | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@solidlab/derived-resources-component/^1.0.0/components/context.jsonld" | ||
], | ||
"@graph": [ | ||
{ | ||
"comment": "We need to disable the index store as it might accidentally return derived template resources.", | ||
"@id": "urn:solid-server:default:ResourceStore_Index", | ||
"@type": "IndexRepresentationStore", | ||
"mediaRange": "" | ||
}, | ||
{ | ||
"comment": "A second converting store", | ||
"@id": "urn:solid-server:derived:RepresentationConvertingStore", | ||
"@type": "RepresentationConvertingStore", | ||
"metadataStrategy": { "@id": "urn:solid-server:default:MetadataStrategy" }, | ||
"options_inConverter": { "@id": "urn:solid-server:default:RepresentationConverter" }, | ||
"options_outConverter": { "@id": "urn:solid-server:default:UiEnabledConverter" }, | ||
"source": { "@id": "urn:solid-server:derived:DerivedResourceStore" } | ||
}, | ||
{ | ||
"comment": "The store responsible for generating derived resources.", | ||
"@id": "urn:solid-server:derived:DerivedResourceStore", | ||
"@type": "DerivedResourceStore", | ||
"manager": { | ||
"@id": "urn:solid-server:derived:DerivationManager", | ||
"@type": "MetadataDerivationManager", | ||
"identifierStrategy": { "@id": "urn:solid-server:default:IdentifierStrategy" }, | ||
"store": { "@id": "urn:solid-server:default:ResourceStore_Patching" }, | ||
"derivationMatcher": { | ||
"@type": "PresetDerivationMatcher", | ||
"source": { "@type": "TemplateDerivationMatcher" } | ||
}, | ||
"selectorHandler": { | ||
"@id": "urn:solid-server:default:SelectorHandler", | ||
"@type": "GlobSelectorHandler", | ||
"store": { "@id": "urn:solid-server:default:ResourceStore_Patching" } | ||
}, | ||
"filterHandler": { | ||
"@id": "urn:solid-server:default:FilterHandler", | ||
"@type": "SparqlFilterHandler", | ||
"store": { "@id": "urn:solid-server:default:ResourceStore_Patching" } | ||
} | ||
}, | ||
"source": { "@id": "urn:solid-server:default:ResourceStore_Patching" } | ||
}, | ||
{ | ||
"comment": "Insert our new stores in front of the original converting store.", | ||
"@id": "urn:solid-server:derived:PatchOverride", | ||
"@type": "Override", | ||
"overrideInstance": { "@id": "urn:solid-server:default:ResourceStore_Locking" }, | ||
"overrideParameters": { | ||
"@type": "PatchingStore", | ||
"source": { "@id": "urn:solid-server:derived:RepresentationConvertingStore" } | ||
} | ||
}, | ||
{ | ||
"comment": [ | ||
"Keep query parameters in identifiers.", | ||
"This makes it so that any query parameters can cause issues with normal resources so we might want a more robust solution." | ||
], | ||
"@id": "urn:solid-server:derived:TargetExtractorOverride", | ||
"@type": "Override", | ||
"overrideInstance": { "@id": "urn:solid-server:default:TargetExtractor" }, | ||
"overrideParameters": { | ||
"@type": "OriginalUrlExtractor", | ||
"includeQueryString": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,44 @@ | |
"authz": { | ||
"server": "http://localhost:4000/uma" | ||
}, | ||
"pods": [ { "name": "alice" } ] | ||
"pods": [{ | ||
"name": "alice", | ||
"settings": { | ||
"name": "Alice", | ||
"umaServer": "http://localhost:4000/uma" | ||
} | ||
}] | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"password": "abc123", | ||
"authz": { | ||
"server": "http://localhost:4000/uma" | ||
}, | ||
"pods": [ { "name": "bob" } ] | ||
"pods": [ | ||
{ | ||
"name": "bob", | ||
"settings": { | ||
"name": "Bob", | ||
"umaServer": "http://localhost:4000/uma" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"password": "abc123", | ||
"authz": { | ||
"server": "http://localhost:4000/uma" | ||
}, | ||
"pods": [ | ||
{ | ||
"name": "demo", | ||
"settings": { | ||
"name": "Demo", | ||
"umaServer": "http://localhost:4000/uma" | ||
} | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@prefix pim: <http://www.w3.org/ns/pim/space#>. | ||
|
||
<> a pim:Storage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Welcome to your pod | ||
|
||
## A place to store your data | ||
Your pod is a **secure storage space** for your documents and data. | ||
<br> | ||
You can choose to share those with other people and apps. | ||
|
||
As the owner of this pod, | ||
identified by <a href="{{webId}}">{{webId}}</a>, | ||
you have access to all of your documents. | ||
|
||
## Working with your pod | ||
The easiest way to interact with pods | ||
is through Solid apps. | ||
<br> | ||
For example, | ||
you can open your pod in [Databrowser](https://solidos.github.io/mashlib/dist/browse.html?uri={{base.path}}). | ||
|
||
## Accessing your account | ||
To keep track of your pods, webIDs and any other resources, | ||
you can [log in]({{oidcIssuer}}.account/) to your account. | ||
There you can, for example, update the owners of this pod. | ||
|
||
## Learn more | ||
The [Solid website](https://solidproject.org/) | ||
and the people on its [forum](https://forum.solidproject.org/) | ||
will be glad to help you on your journey. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@prefix derived: <urn:npm:solid:derived-resources:> . | ||
|
||
<> | ||
derived:derivedResource [ | ||
derived:template "derived/bday"; | ||
derived:selector <./data>; | ||
derived:filter <../public/filters/bday> | ||
]. | ||
|
||
<> | ||
derived:derivedResource [ | ||
derived:template "derived/age"; | ||
derived:selector <./data>; | ||
derived:filter <../public/filters/age> | ||
]. | ||
|
||
# <> | ||
# derived:derivedResource [ | ||
# derived:template "query{?var}"; | ||
# derived:selector <selectors/data>; | ||
# derived:filter <filters/var> | ||
# ]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@prefix ruben: <https://ruben.verborgh.org/profile/#me>. | ||
@prefix con: <http://www.w3.org/2000/10/swap/pim/contact#>. | ||
@prefix dbo: <http://dbpedia.org/ontology/>. | ||
@prefix dbp: <http://dbpedia.org/resource/>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. | ||
@prefix vcard: <http://www.w3.org/2006/vcard/ns#>. | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. | ||
|
||
ruben: a foaf:Person; | ||
foaf:name "Ruben Verborgh"@en, "Ruben Verborgh"@nl; | ||
rdfs:label "Ruben Verborgh"@en, "Ruben Verborgh"@nl; | ||
vcard:fn "Ruben Verborgh"@en, "Ruben Verborgh"@nl; | ||
con:preferredURI "https://ruben.verborgh.org/profile/#me"; | ||
foaf:givenName "Ruben"@en, "Ruben"@nl; | ||
foaf:familyName "Verborgh"@en, "Verborgh"@nl; | ||
rdfs:label "Ruben Verborgh"@en, "Ruben Verborgh"@nl; | ||
dbo:birthPlace dbp:Ostend; | ||
dbo:birthDate "1987-02-28"^^xsd:date; | ||
foaf:gender "male"@en. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
|
||
<> | ||
a foaf:PersonalProfileDocument; | ||
foaf:maker <{{webId}}>; | ||
foaf:primaryTopic <{{webId}}>. | ||
|
||
<{{webId}}> | ||
{{#if name}}foaf:name "{{name}}";{{/if}} | ||
{{#if umaServer}}solid:umaServer "{{umaServer}}";{{/if}} | ||
{{#if oidcIssuer}}solid:oidcIssuer <{{oidcIssuer}}>;{{/if}} | ||
a foaf:Person. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# THIS IS A COPY OF ../private/.meta | ||
|
||
@prefix derived: <urn:npm:solid:derived-resources:> . | ||
|
||
<> | ||
derived:derivedResource [ | ||
derived:template "derived/bday"; | ||
derived:selector <./data>; | ||
derived:filter <filters/bday> | ||
]. | ||
|
||
<> | ||
derived:derivedResource [ | ||
derived:template "derived/age"; | ||
derived:selector <./data>; | ||
derived:filter <filters/age> | ||
]. | ||
|
||
# <> | ||
# derived:derivedResource [ | ||
# derived:template "query{?var}"; | ||
# derived:selector <selectors/data>; | ||
# derived:filter <filters/var> | ||
# ]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# THIS IS A COPY OF ../private/data | ||
|
||
@prefix ruben: <https://ruben.verborgh.org/profile/#me>. | ||
@prefix con: <http://www.w3.org/2000/10/swap/pim/contact#>. | ||
@prefix dbo: <http://dbpedia.org/ontology/>. | ||
@prefix dbp: <http://dbpedia.org/resource/>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. | ||
@prefix vcard: <http://www.w3.org/2006/vcard/ns#>. | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. | ||
|
||
ruben: a foaf:Person; | ||
foaf:name "Ruben Verborgh"@en, "Ruben Verborgh"@nl; | ||
rdfs:label "Ruben Verborgh"@en, "Ruben Verborgh"@nl; | ||
vcard:fn "Ruben Verborgh"@en, "Ruben Verborgh"@nl; | ||
con:preferredURI "https://ruben.verborgh.org/profile/#me"; | ||
foaf:givenName "Ruben"@en, "Ruben"@nl; | ||
foaf:familyName "Verborgh"@en, "Verborgh"@nl; | ||
rdfs:label "Ruben Verborgh"@en, "Ruben Verborgh"@nl; | ||
dbo:birthPlace dbp:Ostend; | ||
dbo:birthDate "1987-02-28"^^xsd:date; | ||
foaf:gender "male"@en. |
18 changes: 18 additions & 0 deletions
18
packages/css/templates/pod/base/public/filters/age$.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
PREFIX dbo: <http://dbpedia.org/ontology/> | ||
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | ||
|
||
CONSTRUCT { | ||
?s foaf:age ?age . | ||
} WHERE { | ||
?s dbo:birthDate ?bday . | ||
BIND(now() AS ?now) | ||
BIND(year(?bday) AS ?bday_year) | ||
BIND(month(?bday) AS ?bday_month) | ||
BIND(day(?bday) AS ?bday_day) | ||
BIND(year(?now) AS ?now_year) | ||
BIND(month(?now) AS ?now_month) | ||
BIND(day(?now) AS ?now_day) | ||
BIND(IF (?now_day - ?bday_day < 0, 1, 0) AS ?extra_month) | ||
BIND(IF (?now_month - ?bday_month - ?extra_month < 0, 1, 0) AS ?extra_year) | ||
BIND(?now_year - ?bday_year - ?extra_year AS ?age) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PREFIX dbo: <http://dbpedia.org/ontology/> | ||
|
||
CONSTRUCT { | ||
?s dbo:birthDate ?bday . | ||
} WHERE { | ||
?s dbo:birthDate ?bday . | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.