diff --git a/METADATA.md b/METADATA.md index c00930a0..8b67b23f 100644 --- a/METADATA.md +++ b/METADATA.md @@ -76,11 +76,12 @@ The kind of document. Currently we have the following kinds of documents: * `benefit-report` * `tag`: the tag itself (a controlled concept) * `tag-page` (distinct from tag as a concept) -* `author-page` +* `personal-profile-page`: a foaf personal profile document * `archive-page` * `vocabulary` * `dependency` * `person` +* `member`: A member of the company * `base-dictionary` * `extra-dictionary` * `acronym-dictionary` @@ -110,3 +111,15 @@ resolve to a document in the archive. ### `redirect_to_id` The item to which this item should be redirected in some way. + +## Metadata relating to people (and member) items + +### `web_id` {.optional} + +The [WebID](https://www.w3.org/2005/Incubator/webid/spec/identity/) of the +person, if the person has one. + +### `hashtag` {.optional} + +The fragment identifier to use to identify the person denoted by the WebID. By +default uses the identifier `me`. diff --git a/etc/people.yaml b/etc/people.yaml new file mode 100644 index 00000000..1c9a887a --- /dev/null +++ b/etc/people.yaml @@ -0,0 +1,4 @@ +--- +- name: Sarven Capadisli + web_id: https://csarven.ca/#i +... diff --git a/items/static/blog/posts/defining-the-scholarly-commons/persistent-identifiers/index.md b/items/static/blog/posts/defining-the-scholarly-commons/persistent-identifiers/index.md index 6e7b010f..6c03e9ab 100644 --- a/items/static/blog/posts/defining-the-scholarly-commons/persistent-identifiers/index.md +++ b/items/static/blog/posts/defining-the-scholarly-commons/persistent-identifiers/index.md @@ -381,11 +381,11 @@ Here's a tiny example: @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -<<%= iri_for(me) %>> a foaf:Person ; +<<%= me.fetch(:web_id) %>> a foaf:Person ; rdfs:label "<%= full_name(me) %>"@en ; foaf:familyName "<%= me[:last_name] %>"@en ; foaf:givenName "<%= me[:first_name] %>"@en ; - foaf:img <<%= photo_url(me, global: true) %>> ; + foaf:img <<%= path_to_photo(me, absolute: true) %>> ; foaf:mbox <mailto:<%= me[:email] %>> ; foaf:name "<%= full_name(me) %>"@en ; cc:license <https://creativecommons.org/licenses/by/4.0/> . diff --git a/layouts/blog/partials/citations.erb b/layouts/blog/partials/citations.erb index cf881477..313df35c 100644 --- a/layouts/blog/partials/citations.erb +++ b/layouts/blog/partials/citations.erb @@ -8,7 +8,7 @@