Hello,
I tried to extract concepts from generated result (in attachment), but I'm
confused now. Could you please explain me the structure of the provided
result?
I tried to annotate simple text:
*
*
*"Stomp implementation fully supports an ActiveMQ
security<http://activemq.apache.org/security.html> mechanism.
This means that the CONNECT command will return an ERROR frame on
unsuccessful authentication. Also, the authorization policies will be
applied when you try to access (read/write) certain destinations. If you
use synchronous operations (by using
receipts<http://stomp.github.com/stomp-specification-1.1.html#RECEIPT>),
you can expect an ERROR frame in case of unauthorized access attempt. In
other case, operations will be discarded but the client will not be
informed of errors. This also stands for all other errors that can happen
on the broker side." *
(I agree it is not such a representative example...)
How can I extract information about number of concepts' occurrence in
annotated text (i.e. how many times discovered concepts occurs in text), and/or
weight of discovered concept (for example TFIDF)?
Best,
Srecko
{
"@context": {
"Airline": "http://dbpedia.org/ontology/Airline",
"comment": "http://www.w3.org/2000/01/rdf-schema#comment",
"Company": "http://dbpedia.org/ontology/Company",
"confidence": "http://fise.iks-project.eu/ontology/confidence",
"created": "http://purl.org/dc/terms/created",
"creator": "http://purl.org/dc/terms/creator",
"depiction": "http://xmlns.com/foaf/0.1/depiction",
"end": "http://fise.iks-project.eu/ontology/end",
"Enhancement": "http://fise.iks-project.eu/ontology/Enhancement",
"entity-label": "http://fise.iks-project.eu/ontology/entity-label",
"entity-reference": "http://fise.iks-project.eu/ontology/entity-reference",
"entity-type": "http://fise.iks-project.eu/ontology/entity-type",
"EntityAnnotation": "http://fise.iks-project.eu/ontology/EntityAnnotation",
"entityRank": "http://www.iks-project.eu/ontology/rick/model/entityRank",
"extracted-from": "http://fise.iks-project.eu/ontology/extracted-from",
"homepage": "http://xmlns.com/foaf/0.1/homepage",
"label": "http://www.w3.org/2000/01/rdf-schema#label",
"language": "http://purl.org/dc/terms/language",
"Organisation": "http://dbpedia.org/ontology/Organisation",
"relation": "http://purl.org/dc/terms/relation",
"score": "http://www.iks-project.eu/ontology/rick/query/score",
"selected-text": "http://fise.iks-project.eu/ontology/selected-text",
"selection-context":
"http://fise.iks-project.eu/ontology/selection-context",
"start": "http://fise.iks-project.eu/ontology/start",
"subject": "http://purl.org/dc/terms/subject",
"TextAnnotation": "http://fise.iks-project.eu/ontology/TextAnnotation",
"Thing": "http://www.w3.org/2002/07/owl#Thing",
"type": "http://purl.org/dc/terms/type",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"@coerce": {
"@iri": [
"entity-reference",
"entity-type",
"extracted-from",
"relation",
"subject",
"type",
"depiction",
"homepage"
],
"xsd:dateTime": "created",
"xsd:double": "confidence",
"xsd:float": [
"entityRank",
"score"
],
"xsd:int": [
"end",
"start"
],
"xsd:string": "creator"
}
},
"@subject": [
{
"@subject": "http://dbpedia.org/resource/Aerom%C3%A9xico_Connect",
"@type": [
"Airline",
"Company",
"Organisation",
"Thing"
],
"comment": {
"@literal": "Aerolitoral, S.A. de C.V. , operating as AeroMéxico
Connect, and formerly as Aerolitoral, is the regional airline of AeroMéxico
operating Embraer ERJ-145 and ERJ-190 aircraft, with crew bases in Monterrey,
Guadalajara, and Mexico City. It operates feeder services to AeroMéxico's hub
airports, using 4 digit flight numbers.",
"@language": "en"
},
"entityRank": 0.34028196,
"homepage": [
"http://web.archive.org/*/http://www.amconnect.com/",
"http://web.archive.org/*/http:/www.amconnect.com/"
],
"label": [
{
"@literal": "AeroLitoral",
"@language": "fr"
},
{
"@literal": "Aerolitoral",
"@language": "de"
},
{
"@literal": "Aerolitoral",
"@language": "nl"
},
{
"@literal": "Aeroméxico Connect",
"@language": "en"
},
{
"@literal": "Aeroméxico Connect",
"@language": "ru"
}
],
"score": 5.7125783,
"subject": [
"http://dbpedia.org/resource/Category:Regional_airlines_of_Mexico",
"http://dbpedia.org/resource/Category:Latin_American_Air_Transport_Association",
"http://dbpedia.org/resource/Category:Airlines_established_in_1991",
"http://dbpedia.org/resource/Category:Regional_Airline_Association_members",
"http://dbpedia.org/resource/Category:Regional_airline_brands"
]
},
{
"@subject": "http://dbpedia.org/resource/BA_Connect",
"@type": [
"Airline",
"Company",
"Organisation",
"Thing"
],
"comment": {
"@literal": "BA Connect was a fully owned subsidiary airline of British
Airways. Headquartered in Didsbury, Manchester, England, it operated a network
of domestic and European services from a number of airports in the United
Kingdom on behalf of British Airways. The airline operated as a low-cost
carrier, with food sold via a 'buy on board' programme (except for flights to
London City Airport). On 3 November 2006 British Airways announced the sale of
BA Connect to Flybe.",
"@language": "en"
},
"depiction": [
"http://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Embraer.rj145.bristol.750pix.jpg/200px-Embraer.rj145.bristol.750pix.jpg",
"http://upload.wikimedia.org/wikipedia/commons/c/c7/Embraer.rj145.bristol.750pix.jpg"
],
"entityRank": 0.27304792,
"label": [
{
"@literal": "BA Connect",
"@language": "de"
},
{
"@literal": "BA Connect",
"@language": "en"
},
{
"@literal": "BA Connect",
"@language": "pt"
}
],
"score": 4.078417,
"subject": [
"http://dbpedia.org/resource/Category:Airlines_established_in_2006",
"http://dbpedia.org/resource/Category:Oneworld_affiliate_members",
"http://dbpedia.org/resource/Category:Defunct_airlines_of_the_United_Kingdom"
]
},
{
"@subject": "http://dbpedia.org/resource/Midwest_Connect",
"@type": [
"Airline",
"Company",
"Organisation",
"Thing"
],
"comment": {
"@literal": "Midwest Connect was the brand name for the regional
airline service of Midwest Airlines, rather than a certificated airline
carrier. Skyway Airlines was the sole operator of Midwest Connect since its
inception in 1989, until SkyWest Airlines began additional Midwest Connect
service on April 1, 2007. SkyWest took over all Midwest Connect operations
following Skyway's shutdown of operations on April 5, 2008. In October, 2008,
Republic Airlines also began operating for Midwest Connect.",
"@language": "en"
},
"entityRank": 0.2847935,
"homepage": "http://www.midwestairlines.com",
"label": {
"@literal": "Midwest Connect",
"@language": "en"
},
"score": 5.381638,
"subject": "http://dbpedia.org/resource/Category:Regional_airline_brands"
},
{
"@subject": "urn:enhancement-06935382-2903-0804-6883-00bdc3c16c35",
"@type": [
"Enhancement",
"EntityAnnotation"
],
"confidence": 5.7125783,
"created": "2012-05-26T18:26:16.292Z",
"creator":
"org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine",
"entity-label": {
"@literal": "Aeroméxico Connect",
"@language": "en"
},
"entity-reference": "http://dbpedia.org/resource/Aerom%C3%A9xico_Connect",
"entity-type": [
"Company",
"Organisation",
"Airline",
"Thing"
],
"extracted-from":
"urn:content-item-sha1-3665b857bb4ca121fa2eba8350f6651112f27045",
"relation": "urn:enhancement-e25e54a0-3300-05c2-a700-0e5b95e13aca"
},
{
"@subject": "urn:enhancement-4bbfa5fd-f9c1-5cc8-85ad-e5de487d88b8",
"@type": [
"Enhancement",
"EntityAnnotation"
],
"confidence": 4.078417,
"created": "2012-05-26T18:26:16.293Z",
"creator":
"org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine",
"entity-label": {
"@literal": "BA Connect",
"@language": "en"
},
"entity-reference": "http://dbpedia.org/resource/BA_Connect",
"entity-type": [
"Company",
"Organisation",
"Airline",
"Thing"
],
"extracted-from":
"urn:content-item-sha1-3665b857bb4ca121fa2eba8350f6651112f27045",
"relation": "urn:enhancement-e25e54a0-3300-05c2-a700-0e5b95e13aca"
},
{
"@subject": "urn:enhancement-758ddf22-b68a-2ea3-e21f-fecea443125e",
"@type": [
"Enhancement",
"EntityAnnotation"
],
"confidence": 5.381638,
"created": "2012-05-26T18:26:16.293Z",
"creator":
"org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine",
"entity-label": {
"@literal": "Midwest Connect",
"@language": "en"
},
"entity-reference": "http://dbpedia.org/resource/Midwest_Connect",
"entity-type": [
"Company",
"Organisation",
"Airline",
"Thing"
],
"extracted-from":
"urn:content-item-sha1-3665b857bb4ca121fa2eba8350f6651112f27045",
"relation": "urn:enhancement-e25e54a0-3300-05c2-a700-0e5b95e13aca"
},
{
"@subject": "urn:enhancement-bce5d228-a7b9-f878-f02e-a68ae756bcb5",
"@type": [
"Enhancement",
"TextAnnotation"
],
"created": "2012-05-26T18:26:16.267Z",
"creator":
"org.apache.stanbol.enhancer.engines.langid.LangIdEnhancementEngine",
"extracted-from":
"urn:content-item-sha1-3665b857bb4ca121fa2eba8350f6651112f27045",
"language": "en"
},
{
"@subject": "urn:enhancement-e25e54a0-3300-05c2-a700-0e5b95e13aca",
"@type": [
"Enhancement",
"TextAnnotation"
],
"confidence": 0.91095334,
"created": "2012-05-26T18:26:16.276Z",
"creator":
"org.apache.stanbol.enhancer.engines.opennlp.impl.NEREngineCore",
"end": 95,
"extracted-from":
"urn:content-item-sha1-3665b857bb4ca121fa2eba8350f6651112f27045",
"selected-text": {
"@literal": "CONNECT",
"@language": "en"
},
"selection-context": {
"@literal": "Stomp implementation fully supports an ActiveMQ security
mechanism. This means that the CONNECT command will return an ERROR frame on
unsuccessful authentication. Also, the authorization policies will be applied
when you try to access (read/write) certain destinations.",
"@language": "en"
},
"start": 88,
"type": "Organisation"
}
]
}