-
Notifications
You must be signed in to change notification settings - Fork 2
Feature suggestion: Add properties to wikidata items directly #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is implemented in the dev branch for command By the way: how would you call the two kinds of mappings (with two properties or with Wikidata item id and one property)? One-way vs. two-way mappings? |
In my thinking about the tool, I would define it's main purpose as adding authority properties (which normally means that these properties are of datatype external-id, and should represent 1:1 relationship). The item to which the property should be added can be defined in two ways:
I would prefer this terminology over one-way vs. two-way, because the latter could be intermingeled with reversing the input for an indirect mapping (as outlined in #13). |
|
This should also work from the dev branch:
|
With the terminology you suggested, the tool can be used to manage direct mappings:
to manage indirect mappings:
The names "source" and "target" come from BEACON. |
Makes sense to me, too! |
I'd suggest that the beacon output of the get command not only include the source/target URI stubs, but also explicitly the WDSOURCEPROPERTY/WDTARGETPROPERTY header statements. (They could be obtained somehow from the URI stub, but subtle differences (e.g. implied {id}, trailing slashes and the like) could make that more brittle. |
Metadata fields SOUCEPROPERTY and TARGETPROPERTY are used internally in 0.0.9 but with the raw property id such as "P227". I'd change this to the full property URI such as "http://www.wikidata.org/entity/P227" and make them public in the next release. |
Perhaps the following feature is planned anyway, then just take it as a confirmation that there is interest :)
Sometimes, authority properties for wikidata can be derived from external sources. (E.g., the Repec-ShortID property can be extracted from infoboxes in the Englisch wikipedia via dbpedia.)
I've not found a program/bot which can process a file for adding these properties. The error checking logic is very similar to wdmapper, so it could make sense to extend the tool for this purpose, too.
Example input (in beacon format):
The text was updated successfully, but these errors were encountered: