Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
khituras committed Apr 10, 2022
1 parent d3ad538 commit 003a58f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,23 @@ public IFieldValue generateFieldValue(FeatureStructure fs) throws FieldGeneratio
document.addField("argumentcoveredtext", createRawFieldValueForAnnotations(argPair, "/:coveredText()"));
document.addField("argumentprefnames", createRawFieldValueForAnnotations(argPair, "/ref/resourceEntryList/entryId", geneFb.egid2prefNameReplaceFilter));
document.addField("argumenthomoprefnames", createRawFieldValueForAnnotations(argPair, "/ref/resourceEntryList/entryId", geneFb.egid2homoPrefNameReplaceFilter));
document.addField("argumentmatchtypes", Stream.of(argPair).map(ArgumentMention.class::cast).map(ArgumentMention::getRef).map(ConceptMention.class::cast).map(cm -> cm.getResourceEntryList(0).getConfidence().contains("9999") ? "exact" : "fuzzy").toArray());
document.addField("argumentmatchtypes", Stream.of(argPair).map(ArgumentMention.class::cast).map(ArgumentMention::getRef).map(ConceptMention.class::cast).map(cm -> cm.getResourceEntryList(0).getConfidence() == null || cm.getResourceEntryList(0).getConfidence().contains("9999") ? "exact" : "fuzzy").toArray());
document.addField("argument1", createRawFieldValueForAnnotation(argPair[0], "/ref/resourceEntryList/entryId", geneFb.gene2tid2atidAddonFilter));
document.addField("argument1geneid", createRawFieldValueForAnnotation(argPair[0], "/ref/resourceEntryList/entryId", null));
document.addField("argument1conceptid", createRawFieldValueForAnnotation(argPair[0], "/ref/resourceEntryList/entryId", geneFb.eg2tidReplaceFilter));
document.addField("argument1tophomoid", createRawFieldValueForAnnotation(argPair[0], "/ref/resourceEntryList/entryId", geneFb.eg2tophomoFilter));
document.addField("argument1coveredtext", createRawFieldValueForAnnotation(argPair[0], "/:coveredText()", null));
document.addField("argument1prefname", createRawFieldValueForAnnotation(argPair[0], "/ref/resourceEntryList/entryId", geneFb.egid2prefNameReplaceFilter));
document.addField("argument1homoprefname", createRawFieldValueForAnnotation(argPair[0], "/ref/resourceEntryList/entryId", geneFb.egid2homoPrefNameReplaceFilter));
document.addField("argument1matchtype", Stream.of(argPair).map(ArgumentMention.class::cast).map(ArgumentMention::getRef).map(ConceptMention.class::cast).map(cm -> cm.getResourceEntryList(0).getConfidence().contains("9999") ? "exact" : "fuzzy").toArray());
document.addField("argument1matchtype", Stream.of(argPair).map(ArgumentMention.class::cast).map(ArgumentMention::getRef).map(ConceptMention.class::cast).map(cm -> cm.getResourceEntryList(0).getConfidence() == null || cm.getResourceEntryList(0).getConfidence().contains("9999") ? "exact" : "fuzzy").toArray());
document.addField("argument2", createRawFieldValueForAnnotation(argPair[1], "/ref/resourceEntryList/entryId", geneFb.gene2tid2atidAddonFilter));
document.addField("argument2geneid", createRawFieldValueForAnnotation(argPair[1], "/ref/resourceEntryList/entryId", null));
document.addField("argument2conceptid", createRawFieldValueForAnnotation(argPair[1], "/ref/resourceEntryList/entryId", geneFb.eg2tidReplaceFilter));
document.addField("argument2tophomoid", createRawFieldValueForAnnotation(argPair[1], "/ref/resourceEntryList/entryId", geneFb.eg2tophomoFilter));
document.addField("argument2coveredtext", createRawFieldValueForAnnotation(argPair[1], "/:coveredText()", null));
document.addField("argument2prefname", createRawFieldValueForAnnotation(argPair[1], "/ref/resourceEntryList/entryId", geneFb.egid2prefNameReplaceFilter));
document.addField("argument2homoprefname", createRawFieldValueForAnnotation(argPair[1], "/ref/resourceEntryList/entryId", geneFb.egid2homoPrefNameReplaceFilter));
document.addField("argument2matchtype", Stream.of(argPair).map(ArgumentMention.class::cast).map(ArgumentMention::getRef).map(ConceptMention.class::cast).map(cm -> cm.getResourceEntryList(0).getConfidence().contains("9999") ? "exact" : "fuzzy").toArray());
document.addField("argument2matchtype", Stream.of(argPair).map(ArgumentMention.class::cast).map(ArgumentMention::getRef).map(ConceptMention.class::cast).map(cm -> cm.getResourceEntryList(0).getConfidence() == null || cm.getResourceEntryList(0).getConfidence().contains("9999") ? "exact" : "fuzzy").toArray());
document.addField("maineventtype", createRawFieldValueForAnnotation(rel.getRootRelation(), "/specificType", null));
document.addField("alleventtypes", Stream.of(rel.getRelations().toArray()).map(EventMention.class::cast).map(EventMention::getSpecificType).collect(Collectors.toSet()).toArray());
document.addField("ARGUMENT_FS", argPair);
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"uri":null,"location":"de.julielab.jcore.ae.likelihooddetection.desc.jcore-likelihood-detection-ae","category":"ae","uimaDescPath":null,"metaDescription":{"description":"Analysis Engine to detect epistemic modal expressions and assign the appropriate likelihood category.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["ae"],"pear":false,"name":"JCoRe Likelihood Detection AE","base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-likelihood-detection-ae","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/Users/faessler/.m2/repository/de/julielab/jcore-likelihood-detection-ae/2.6.0-SNAPSHOT/jcore-likelihood-detection-ae-2.6.0-20210618.074215-31.jar","packaging":"jar"}},"name":"JCoRe Likelihood Detection AE","active":true},{"uri":null,"location":"de.julielab.jcore.ae.likelihoodassignment.desc.jcore-likelihood-assignment-ae","category":"ae","uimaDescPath":null,"metaDescription":{"description":"Analysis Engine to assign likelihood indicators to their corresponding entities and events.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["ae"],"pear":false,"name":"JCoRe Likelihood Assignment AE","base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-likelihood-assignment-ae","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/Users/faessler/.m2/repository/de/julielab/jcore-likelihood-assignment-ae/2.6.0-SNAPSHOT/jcore-likelihood-assignment-ae-2.6.0-20210618.074150-31.jar","packaging":"jar"}},"name":"JCoRe Likelihood Assignment AE","active":true},{"uri":null,"location":"de.julielab.jcore.ae.eventflattener.desc.jcore-event-flattener-ae","category":"ae","uimaDescPath":null,"metaDescription":{"description":"This component reads de.julielab.jcore.types.EventMention annotations and converts event structures into de.julielab.jcore.types.ext.FlattenedRelation annotation. The purpose of FlattenedRelations is to represent complex event structures in a more simple manner. This can be helpful for visualization or further processing.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["ae"],"pear":false,"name":"JCoRe Event Flattener AE","base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-event-flattener-ae","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/Users/faessler/.m2/repository/de/julielab/jcore-event-flattener-ae/2.6.0-SNAPSHOT/jcore-event-flattener-ae-2.6.0-SNAPSHOT.jar","packaging":"jar"}},"name":"de.julielab.jcore.ae.eventflattener.EventFlattener","active":true}]
[{"uri":null,"location":"de.julielab.jcore.ae.likelihooddetection.desc.jcore-likelihood-detection-ae","category":"ae","uimaDescPath":null,"metaDescription":{"description":"Analysis Engine to detect epistemic modal expressions and assign the appropriate likelihood category.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["ae"],"name":"JCoRe Likelihood Detection AE","pear":false,"base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-likelihood-detection-ae","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/home/faessler/.m2/repository/de/julielab/jcore-likelihood-detection-ae/2.6.0-SNAPSHOT/jcore-likelihood-detection-ae-2.6.0-SNAPSHOT.jar","packaging":"jar"}},"name":"JCoRe Likelihood Detection AE","active":true},{"uri":null,"location":"de.julielab.jcore.ae.likelihoodassignment.desc.jcore-likelihood-assignment-ae","category":"ae","uimaDescPath":null,"metaDescription":{"description":"Analysis Engine to assign likelihood indicators to their corresponding entities and events.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["ae"],"name":"JCoRe Likelihood Assignment AE","pear":false,"base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-likelihood-assignment-ae","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/home/faessler/.m2/repository/de/julielab/jcore-likelihood-assignment-ae/2.6.0-SNAPSHOT/jcore-likelihood-assignment-ae-2.6.0-SNAPSHOT.jar","packaging":"jar"}},"name":"JCoRe Likelihood Assignment AE","active":true},{"uri":null,"location":"de.julielab.jcore.ae.eventflattener.desc.jcore-event-flattener-ae","category":"ae","uimaDescPath":null,"metaDescription":{"description":"This component reads de.julielab.jcore.types.EventMention annotations and converts event structures into de.julielab.jcore.types.ext.FlattenedRelation annotation. The purpose of FlattenedRelations is to represent complex event structures in a more simple manner. This can be helpful for visualization or further processing.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["ae"],"name":"JCoRe Event Flattener AE","pear":false,"base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-event-flattener-ae","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/home/faessler/.m2/repository/de/julielab/jcore-event-flattener-ae/2.6.0-SNAPSHOT/jcore-event-flattener-ae-2.6.0-20220203.144049-32.jar","packaging":"jar"}},"name":"de.julielab.jcore.ae.eventflattener.EventFlattener","active":true}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"uri":"file:/Users/faessler/Coding/git/gepi/gepi/gepi-indexing/gepi-indexing-pubmed/./desc/JCoRe%20Database%20Checkpoint%20Writer.xml","location":"de.julielab.jcore.ae.checkpoint.desc.jcore-db-checkpoint-consumer","category":"consumer","uimaDescPath":"JCoRe Database Checkpoint Writer.xml","metaDescription":{"description":"This is a JeDIS component. It can be used to set the 'last component' column in a subset table. This help to keep track of the pipeline status.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["consumer","ae"],"pear":false,"name":"JCoRe Database Checkpoint AE","base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-db-checkpoint-ae","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/Users/faessler/.m2/repository/de/julielab/jcore-db-checkpoint-ae/2.6.0-SNAPSHOT/jcore-db-checkpoint-ae-2.6.0-SNAPSHOT.jar","packaging":"jar"}},"name":"JCoRe Database Checkpoint Writer","active":true},{"uri":"file:/Users/faessler/Coding/git/gepi/gepi/gepi-indexing/gepi-indexing-pubmed/./desc/JCoRe%20Neo4j%20Relations%20Consumer.xml","location":"de.julielab.jcore.consumer.neo4jrelations.desc.jcore-neo4j-relations-consumer","category":"consumer","uimaDescPath":"JCoRe Neo4j Relations Consumer.xml","metaDescription":{"description":"Writes EventMentions to Neo4j.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["consumer"],"pear":false,"name":"JCoRe Neo4j Relations Consumer","base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-neo4j-relations-consumer","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/Users/faessler/.m2/repository/de/julielab/jcore-neo4j-relations-consumer/2.6.0-SNAPSHOT/jcore-neo4j-relations-consumer-2.6.0-20210618.074226-31.jar","packaging":"jar"}},"name":"JCoRe Neo4j Relations Consumer","active":true},{"uri":"file:/Users/faessler/Coding/git/gepi/gepi/gepi-indexing/gepi-indexing-pubmed/./desc/JCore%20ElasticSearch%20Consumer.xml","location":"de.julielab.jcore.consumer.es.desc.jcore-elasticsearch-consumer","category":"consumer","uimaDescPath":"JCore ElasticSearch Consumer.xml","metaDescription":{"description":"This component converts CAS annotations into a JSON format that originates from Solr's preanalyzed field type. At the JulieLab, there is an ElasticSearch plugin making this format accessible also by ElasticSearch. Configuration happens right in Java code. Note that the component is also able to generate perfectly valid ElasticSearch default JSON which does not require the plugin. Then, however, the preanalyzed data format cannot be used because this is the format that required the ElasticSearch plugin.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["consumer"],"pear":false,"name":"JCoRe ElasticSearch Consumer","base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-elasticsearch-consumer","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/Users/faessler/.m2/repository/de/julielab/jcore-elasticsearch-consumer/2.6.0-SNAPSHOT/jcore-elasticsearch-consumer-2.6.0-SNAPSHOT.jar","packaging":"jar"}},"name":"JCore ElasticSearch Consumer","active":true}]
[{"uri":"file:/home/faessler/Coding/git/gepi/gepi/gepi-indexing/gepi-indexing-pubmed/./desc/JCoRe%20Database%20Checkpoint%20Writer.xml","location":"de.julielab.jcore.ae.checkpoint.desc.jcore-db-checkpoint-consumer","category":"consumer","uimaDescPath":"JCoRe Database Checkpoint Writer.xml","metaDescription":{"description":"This is a JeDIS component. It can be used to set the 'last component' column in a subset table. This help to keep track of the pipeline status.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["consumer","ae"],"name":"JCoRe Database Checkpoint AE","pear":false,"base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-db-checkpoint-ae","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/home/faessler/.m2/repository/de/julielab/jcore-db-checkpoint-ae/2.6.0-SNAPSHOT/jcore-db-checkpoint-ae-2.6.0-SNAPSHOT.jar","packaging":"jar"}},"name":"JCoRe Database Checkpoint Writer","active":true},{"uri":"file:/home/faessler/Coding/git/gepi/gepi/gepi-indexing/gepi-indexing-pubmed/./desc/JCoRe%20Neo4j%20Relations%20Consumer.xml","location":"de.julielab.jcore.consumer.neo4jrelations.desc.jcore-neo4j-relations-consumer","category":"consumer","uimaDescPath":"JCoRe Neo4j Relations Consumer.xml","metaDescription":{"description":"Writes EventMentions to Neo4j.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["consumer"],"name":"JCoRe Neo4j Relations Consumer","pear":false,"base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-neo4j-relations-consumer","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/home/faessler/.m2/repository/de/julielab/jcore-neo4j-relations-consumer/2.6.0-SNAPSHOT/jcore-neo4j-relations-consumer-2.6.0-20210618.074226-31.jar","packaging":"jar"}},"name":"JCoRe Neo4j Relations Consumer","active":true},{"uri":"file:/home/faessler/Coding/git/gepi/gepi/gepi-indexing/gepi-indexing-pubmed/./desc/JCore%20ElasticSearch%20Consumer.xml","location":"de.julielab.jcore.consumer.es.desc.jcore-elasticsearch-consumer","category":"consumer","uimaDescPath":"JCore ElasticSearch Consumer.xml","metaDescription":{"description":"This component converts CAS annotations into a JSON format that originates from Solr's preanalyzed field type. At the JulieLab, there is an ElasticSearch plugin making this format accessible also by ElasticSearch. Configuration happens right in Java code. Note that the component is also able to generate perfectly valid ElasticSearch default JSON which does not require the plugin. Then, however, the preanalyzed data format cannot be used because this is the format that required the ElasticSearch plugin.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["consumer"],"name":"JCoRe ElasticSearch Consumer","pear":false,"base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-elasticsearch-consumer","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/home/faessler/.m2/repository/de/julielab/jcore-elasticsearch-consumer/2.6.0-SNAPSHOT/jcore-elasticsearch-consumer-2.6.0-SNAPSHOT.jar","packaging":"jar"}},"name":"JCore ElasticSearch Consumer","active":true}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"uri":null,"location":"de.julielab.jcore.reader.xmi.desc.jcore-xmi-db-multiplier","category":"multiplier","uimaDescPath":"JCoRe Abstract Database Multiplier.xml","metaDescription":{"description":"Reads CAS XMI data from a relational database (Postgres). Thus, the stored CASes may then be processed further.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["multiplier","reader"],"pear":false,"name":"JCoRe XMI Database Reader","base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-xmi-db-reader","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/Users/faessler/.m2/repository/de/julielab/jcore-xmi-db-reader/2.6.0-SNAPSHOT/jcore-xmi-db-reader-2.6.0-SNAPSHOT.jar","packaging":"jar"}},"name":"JCoRe Abstract Database Multiplier","active":true}]
[{"uri":null,"location":"de.julielab.jcore.reader.xmi.desc.jcore-xmi-db-multiplier","category":"multiplier","uimaDescPath":"JCoRe Abstract Database Multiplier.xml","metaDescription":{"description":"Reads CAS XMI data from a relational database (Postgres). Thus, the stored CASes may then be processed further.","group":"general","module":{"type":"GitHubRepository","name":"jcore-base","version":"v2.6","updateable":true,"type":"GitHubRepository","gitHubName":"JULIELab"},"base":null,"exposable":true,"categories":["multiplier","reader"],"name":"JCoRe XMI Database Reader","pear":false,"base-project":null,"maven-artifact":{"groupId":"de.julielab","artifactId":"jcore-xmi-db-reader","version":"2.6.0-SNAPSHOT","classifier":null,"file":"/home/faessler/.m2/repository/de/julielab/jcore-xmi-db-reader/2.6.0-SNAPSHOT/jcore-xmi-db-reader-2.6.0-SNAPSHOT.jar","packaging":"jar"}},"name":"JCoRe Abstract Database Multiplier","active":true}]
Loading

0 comments on commit 003a58f

Please sign in to comment.