Add support for predicate-object pairs to ROBOT template#1249
Merged
jamesaoverton merged 8 commits intomasterfrom May 9, 2025
Merged
Add support for predicate-object pairs to ROBOT template#1249jamesaoverton merged 8 commits intomasterfrom
jamesaoverton merged 8 commits intomasterfrom
Conversation
…/robot into pk-mitre-multi-annotation-column
Member
Author
|
@jamesaoverton These look good. Covering all object types very useful and we need the annotation value language tag, glad you added that. |
matentzn
approved these changes
Mar 10, 2025
Contributor
matentzn
left a comment
There was a problem hiding this comment.
Very cool feature! Implementation looks good as well.
| @@ -0,0 +1,2 @@ | |||
| Term Term ID Annotations | |||
| ACME Communications INC acme:s-1 "acme:p-1 " Value ZZ"|acme:p-2 "1234"^^xsd:integer|acme:p-3 'FOO BAR,BAZ,BAT'" | |||
Contributor
There was a problem hiding this comment.
Just noting here that I didnt know "acme:p-1 " Value ZZ"..." would work without escaping the inner " symbols!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #1205, building on work by @pk-mitre.
docs/have been added/updatedmvn verifysays all tests passmvn sitesays all JavaDocs correctCHANGELOG.mdhas been updatedAdd support for property-object pairs in a single cell of a ROBOT template:
APannotation property-object pairs: If the template string isAPthen ROBOT will look in each cell of that column for predicate-object pairs, with a syntax similar to Turtle, such asex:p1 'A'orex:p2 '1234'^^xsd:integer. UsingAP SPLIT=|we can specify a list of annotations:ex:p1 'A'|ex:p2 "B"@en|ex:p3 '3'^^xsd:integer|ex:p4 ex:curie|ex:p5 <http://ex.com>.