-
Notifications
You must be signed in to change notification settings - Fork 11
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
Move 'query' field inside 'properties' #149
Conversation
A <dfn>property assignment</dfn> specifies the expected value of a property on the entities to match. | ||
These are used to filter the set of candidates (similar to a WHERE clause in SQL), | ||
by allowing clients to specify an attribute of entities that should match. It consists of: | ||
<dl> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HTML nitpick: Isn't <dl>
a block element in HTML? It shouldn't be placed inside <p>
like this, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I created an issue about it because it would require normalization in the rest of the document too: #151
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my perspective, this is a somewhat unexpected solution for #134 and #145. In a way I like it, because it unifies the structure of queries. OTOH, it makes the simple case of querying just for a name more complex, as seen from the examples; the minimal example is a lot less minimal now.
The PR looks well made (except for a minor HTML structure issue that I commented on) and seems to correctly adjust all the relevant examples.
I'm not against this if the CG decides that this is the right way forward. Just a bit concerned about the additional complexity.
e3f610c
to
8524de9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If an incompatible change is going to be introduced in the name of orderliness, I think it makes sense to make it as clean as possible and tidy up all the loose ends. In particular, having a missing property imply some special property doesn't seem very clean.
draft/examples/reconciliation-query-batch/invalid/misnamed-property.json
Show resolved
Hide resolved
draft/examples/reconciliation-query-batch/invalid/multiple-types.json
Outdated
Show resolved
Hide resolved
@tfmorris in our call this week, we thought that we could accommodate your preference for an explicit Also, I want to stress that the consensus we reach in the monthly calls are not (in my opinion) meant to be definitive resolutions of the entire community group, but rather ways to quickly run ideas by other group members and get their feedback early on (saving some rounds of review on GitHub). So there is no problem with questioning those outcomes. That's why we still make PRs for those things. |
I think it was me who suggested an empty pid, in the spirit of "what is the simplest thing that could possibly work?". I have no problem admitting that this is hackish and ugly.
It seems to me that the scope of "conditions": [
{
"match_type": "label",
"v": "Christel Hanewinckel"
},
{
"match_type": "property",
"pid": "professionOrOccupation",
"v": "Politik*",
"required": false,
"match_quantifier": "any",
"match_qualifier": "WildcardMatch"
},
{
"match_type": "property",
"pid": "affiliation",
"v": "http://d-nb.info/gnd/2022139-3",
"required": false,
"match_quantifier": "any",
"match_qualifier": "ExactMatch"
}
] To handle types as well (#145), we could add |
So to summarize, we'd have 3 different kinds of For compatibility, we could also keep the It seems like a sensible way to structure this. In general, simply using |
That sounds good to me, but I would suggest |
|
Co-authored-by: Fabian Steeg <[email protected]>
Should the changes made in this PR also be mentioned in the changes section 1.4.3 This Draft? |
Yes, we could add update this section with all of the recent changes we have done (not just this one). |
Closes #134. Closes #106.