You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently I am using the simplified versions of getManyEntities reducing it for simplify like
.reduce((oneObject, fromMany) => {
for (const wikibaseId in fromMany) {
oneObject[wikibaseId] = fromMany[wikibaseId];
}
return o;
}, {});
then I do map it to an ActivityStreams JSON-LD "type": "Profile" with e.g. "describes": "wdt:Q1055"
(
simple, with default AS context and "wdt" prefix for wikidata and in the following example alternativeNameMap: { "@id": "wdt:P4970", "@container": "@language" },
)
by just renaming modified -> updated labels -> nameMap aliases -> alternativeNameMap descriptions -> summaryMap
and prefixing other properties with "wdt:" we would have a nice ActivityStreams representation for further use in ActivityPub.
I do also have a mapping from all properties to tag, url, image, icon …
I mean, ActivityStreams is well defined and it would just need a few changes and could become a valuable option.
Hi Seb!
This seems to be quite specific to a certain use case, I don't think it belongs in this lib, but if you turn it into a lib, I would happily link to it from this repo's readme "see also" section :)
Hey Max,
a feature request:
currently I am using the simplified versions of
getManyEntities
reducing it for simplify likethen I do map it to an ActivityStreams JSON-LD
"type": "Profile"
with e.g."describes": "wdt:Q1055"
(
simple, with default AS context and "wdt" prefix for wikidata
and in the following example
alternativeNameMap: { "@id": "wdt:P4970", "@container": "@language" },
)
by just renaming
modified
->updated
labels
->nameMap
aliases
->alternativeNameMap
descriptions
->summaryMap
and prefixing other properties with
"wdt:"
we would have a nice ActivityStreams representation for further use in ActivityPub.I do also have a mapping from all properties to
tag
,url
,image
,icon
…I mean, ActivityStreams is well defined and it would just need a few changes and could become a valuable option.
The text was updated successfully, but these errors were encountered: