Revision: 17792
http://sourceforge.net/p/gate/code/17792
Author: ian_roberts
Date: 2014-04-09 16:57:58 +0000 (Wed, 09 Apr 2014)
Log Message:
-----------
Semantic enrichment application to add DBPedia abstracts
Modified Paths:
--------------
gate/trunk/plugins/Crowd_Sourcing/resources/lookupsToMention.groovy
Added Paths:
-----------
gate/trunk/plugins/Crowd_Sourcing/resources/add-abstracts-from-dbpedia.xgapp
Added:
gate/trunk/plugins/Crowd_Sourcing/resources/add-abstracts-from-dbpedia.xgapp
===================================================================
---
gate/trunk/plugins/Crowd_Sourcing/resources/add-abstracts-from-dbpedia.xgapp
(rev 0)
+++
gate/trunk/plugins/Crowd_Sourcing/resources/add-abstracts-from-dbpedia.xgapp
2014-04-09 16:57:58 UTC (rev 17792)
@@ -0,0 +1,81 @@
+<gate.util.persistence.GateApplication>
+ <urlList class="gate.util.persistence.CollectionPersistence">
+ <localList>
+ <gate.util.persistence.PersistenceManager-URLHolder>
+ <urlString>$gatehome$plugins/Gazetteer_LKB/</urlString>
+ </gate.util.persistence.PersistenceManager-URLHolder>
+ </localList>
+ <collectionType>java.util.ArrayList</collectionType>
+ </urlList>
+ <application
class="gate.util.persistence.ConditionalSerialAnalyserControllerPersistence">
+ <strategiesList class="gate.util.persistence.CollectionPersistence">
+ <localList>
+ <gate.util.persistence.AnalyserRunningStrategyPersistence>
+ <runMode>1</runMode>
+ <featureName></featureName>
+ <featureValue></featureValue>
+ <pr class="gate.util.persistence.LanguageAnalyserPersistence">
+ <runtimeParams class="gate.util.persistence.MapPersistence">
+ <mapType>gate.util.SimpleFeatureMapImpl</mapType>
+ <localMap>
+ <entry>
+ <string>deleteOnNoRelations</string>
+ <boolean>false</boolean>
+ </entry>
+ <entry>
+ <string>annotationTypes</string>
+ <gate.util.persistence.CollectionPersistence>
+ <localList>
+ <string>Lookup</string>
+ </localList>
+ <collectionType>java.util.ArrayList</collectionType>
+ </gate.util.persistence.CollectionPersistence>
+ </entry>
+ <entry>
+ <string>query</string>
+ <string>SELECT ?abs WHERE { <%s>
<http://dbpedia.org/ontology/abstract> ?abs . FILTER(LANG(?abs) =
"" || LANGMATCHES(LANG(?abs), "en"))} LIMIT 1</string>
+ </entry>
+ </localMap>
+ </runtimeParams>
+ <resourceType>com.ontotext.kim.gate.SesameEnrichment</resourceType>
+ <resourceName>Semantic Enrichment PR_00008</resourceName>
+ <initParams class="gate.util.persistence.MapPersistence">
+ <mapType>gate.util.SimpleFeatureMapImpl</mapType>
+ <localMap>
+ <entry>
+ <string>repositoryUrl</string>
+
<string>http://localhost:8081/openrdf-sesame/repositories/dbpedia-empty</string>
+ </entry>
+ <entry>
+ <string>version</string>
+ <null/>
+ </entry>
+ </localMap>
+ </initParams>
+ <features class="gate.util.persistence.MapPersistence">
+ <mapType>gate.util.SimpleFeatureMapImpl</mapType>
+ <localMap/>
+ </features>
+ </pr>
+ </gate.util.persistence.AnalyserRunningStrategyPersistence>
+ </localList>
+ <collectionType>java.util.ArrayList</collectionType>
+ </strategiesList>
+ <prList class="gate.util.persistence.CollectionPersistence">
+ <localList>
+ <gate.util.persistence.LanguageAnalyserPersistence
reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence/pr"/>
+ </localList>
+ <collectionType>java.util.ArrayList</collectionType>
+ </prList>
+
<resourceType>gate.creole.ConditionalSerialAnalyserController</resourceType>
+ <resourceName>Conditional Corpus Pipeline_00009</resourceName>
+ <initParams class="gate.util.persistence.MapPersistence">
+ <mapType>gate.util.SimpleFeatureMapImpl</mapType>
+ <localMap/>
+ </initParams>
+ <features class="gate.util.persistence.MapPersistence">
+ <mapType>gate.util.SimpleFeatureMapImpl</mapType>
+ <localMap/>
+ </features>
+ </application>
+</gate.util.persistence.GateApplication>
Modified: gate/trunk/plugins/Crowd_Sourcing/resources/lookupsToMention.groovy
===================================================================
--- gate/trunk/plugins/Crowd_Sourcing/resources/lookupsToMention.groovy
2014-04-09 16:56:51 UTC (rev 17791)
+++ gate/trunk/plugins/Crowd_Sourcing/resources/lookupsToMention.groovy
2014-04-09 16:57:58 UTC (rev 17792)
@@ -12,7 +12,9 @@
* each with a different "inst". Additionally, Lookups may have a feature
* named "connections" containing a human-readable description of the KB
* instance (these can be created using the semantic enrichment PR from the
- * Gazetteer_LKB plugin).
+ * Gazetteer_LKB plugin, see add-abstracts-from-dbpedia.xgapp for an example
+ * of this and http://gate.ac.uk/userguide/sec:gazetteers:semantic-enrichment
+ * for documentation).
*
* The script gathers co-extensive Lookup annotations into groups, and for
* each group it generates one output Mention annotation, with the "options"
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs