OSLC Fest, 6 November 2018
Ruben Verborgh
Ghent University – imec
The Solid ecosystem enables you to use the apps you need, while storing your data wherever you want.
You own your data,
and share it
with the apps and people you choose.
PREFIX as: <https://www.w3.org/ns/activitystreams#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<#ruben-likes-oslcfest> a as:Like;
as:actor <https://ruben.verborgh.org/profile/#me>;
as:object <http://www.oslcfest.org/#this>;
as:published "2018-11-06T08:00:00Z"^^xsd:dateTime.
Link following is crucial to make this work.
PREFIX as: <https://www.w3.org/ns/activitystreams#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<#ruben-likes-oslcfest> a as:Like;
as:actor <https://ruben.verborgh.org/profile/#me>;
as:object <http://www.oslcfest.org/#this>;
as:published "2018-11-06T08:00:00Z"^^xsd:dateTime.
Reasoning can bridge vocabulary gaps.
PREFIX as: <https://www.w3.org/ns/activitystreams#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<#ruben-likes-oslcfest> a as:Like;
as:actor <https://ruben.verborgh.org/profile/#me>;
as:object <http://www.oslcfest.org/#this>;
as:published "2018-11-06T08:00:00Z"^^xsd:dateTime.
<#axel-likes-oslcfest> a as:Like;
as:actor <https://www.example.org/people/Axel#i>;
as:object <http://www.oslcfest.org/#this>;
as:published "2018-11-06T08:00:00Z"^^xsd:dateTime.
You’re using Semantic Web technology?
Developers have never wanted it.
const person = node('https://me.example.org/#me')
person.label
person.friends.firstName
const label = await person.label
for await (const name of person.friends.firstName)
console.log(name)
const person = node('https://me.example.org/#me')
const query = await person.friends.firstName.sparql
SELECT ?firstName WHERE {
<https://me.example.org/#me> foaf:knows ?v0.
?v0 foaf:givenName ?firstName.
}
<div>
<h1>Solid App</h1>
<AuthButton popup="popup.html"/>
<LoggedInPane>
<p>Welcome back, <DataField data="user.firstName"/>.</p>
</LoggedInPane>
<LoggedOutPane>
<p>You are logged out.</p>
</LoggedOutPane>
</div>
@RubenVerborgh – ruben.verborgh.org
Ghent University – imec