Happy Easter together,
I had been talking with Simon about the URL of an organization.
I am/was confused that there was a URL describing a thing in RDF and another url describing that thing in HTML (Simon had called that visitor URL).
Example of a visitor URL: https://organisations.staging.wechange.de/organizations/fairkom-gesellschaft/
The same organization is described here in the API: https://organisations.staging.wechange.de/api/v2/organizations/5/
In RDF, we talk about IRIs instead of URLs. See https://www.w3.org/TR/rdf11-concepts/#section-IRIs
For me it was clear that an IRI of a thing (e.g. organsiation) is unique and that via content negotiation (https://de.wikipedia.org/wiki/Content_Negotiation) it is distinguished whether the thing is described in RDF (Turtle, JSON-LD) or in HTML.
But I understand that a HTML representation like https://organisations.staging.wechange.de/api/v2/organizations/5/
is not necessarily made for platform (e.g. WECHANGE) users.
Now there is the possibility to use „sameAs“ (https://schema.org/sameAs) for the visitor link.
But this morning I also came across „mainEntityOfPage“ (https://schema.org/mainEntityOfPage), which I think would also fit well.
I still see the „url“ (https://schema.org/url) as equivalent to the subject of a triple.
So when I say „fairkom is an organization“, the triple would be
<https://organisations.staging.wechange.de/api/v2/organizations/5/> rdf:type schema:Organization ;
Info: In Turtle instead of „rdf:type“ -> „a“ is used, because it reads better.
Then in my head something like this would be correct:
<https://organisations.staging.wechange.de/api/v2/organizations/5/> a schema:Organization ;
schema:url <https://organisations.staging.wechange.de/api/v2/organizations/5/> ;
schema:mainEntityOfPage <https://organisations.staging.wechange.de/organizations/fairkom-gesellschaft/> ;
schema:sameAs <https://organisations.staging.wechange.de/organizations/fairkom-gesellschaft/> ;
Which means the following: (I replace the URL https://organisations.staging.wechange.de/api/v2/organizations/5/
with Fairkom
in the following example).
- Fairkom is a Organisation
- Fairkom.url is
https://organisations.staging.wechange.de/api/v2/organizations/5/
- Fairkom.mainEntityOfPage is
https://organisations.staging.wechange.de/organizations/fairkom-gesellschaft/
- Fairkom is same as
https://organisations.staging.wechange.de/organizations/fairkom-gesellschaft/