Using the following command
curl "
http://spotlight.dbpedia.org/rest/annotate?text=President%20Obama%20called%20Wednesday%20on%20Congress%20to%20extend%20a%20tax%20break%20for%20students%20included%20in%20last%20year%27s%20economic%20stimulus%20package,%20arguing%20that%20the%20policy%20provides%20more%20generous%20assistance.&confidence=0.2&support=20"
-H "Accept:application/json"
I get wrong "@type" for entities. For example, the type of "Congress"
returned is:
"@types":
"Freebase:/protected_sites/natural_or_cultural_preservation_agency,Freebase:/protected_sites,Freebase:/book/book_subject,Freebase:/book,Freebase:/award/award_presenting_organization,Freebase:/award,Freebase:/government/governmental_body,Freebase:/government,Freebase:/business/employer,Freebase:/business,Freebase:/architecture/architectural_structure_owner,Freebase:/architecture,Freebase:/people/appointer,Freebase:/people,Freebase:/book/author,Freebase:/media_common/dedicator,Freebase:/media_common",
However in "http://dbpedia.org/page/United_States_Congress" the 'rdf:type'
is (which is what I want):
owl:Thing
dbpedia-owl:Organisation
dbpedia-owl:Agent
dbpedia-owl:Legislature
http://schema.org/Organization
http://umbel.org/umbel/rc/Organization
http://umbel.org/umbel/rc/GovernmentalOrganization
yago:NationalLegislatures
Is this a bug? Is there anyway to get the 'rdf:type' as above?
Thanks!
(This is the part of the full JSON returned by spotlight)
------------------------------
-------------------------------------------------------------------------
{
"@text": "President Obama called Wednesday on Congress to extend a tax
break for students included in last year's economic stimulus package,
arguing that the policy provides more generous assistance.",
"@confidence": "0.2",
"@support": "20",
"@types": "",
"@sparql": "",
"@policy": "whitelist",
"Resources": [
{
"@URI": "http://dbpedia.org/resource/Presidency_of_Barack_Obama",
"@support": "134",
"@types":
"DBpedia:OfficeHolder,DBpedia:Person,Schema:Person,Freebase:/book/book_subject,Freebase:/book,Freebase:/book/periodical_subject,Freebase:/media_common/quotation_subject,Freebase:/media_common,DBpedia:TopicalConcept",
"@surfaceForm": "President Obama",
"@offset": "0",
"@similarityScore": "0.18051494657993317",
"@percentageOfSecondRank": "-1.0"
},
{
"@URI": "http://dbpedia.org/resource/Sheffield_Wednesday_F.C.",
"@support": "1850",
"@types":
"DBpedia:SoccerClub,DBpedia:SportsTeam,DBpedia:Organisation,Schema:Organization,Schema:SportsTeam,Freebase:/soccer/football_team,Freebase:/soccer,Freebase:/sports/sports_team,Freebase:/sports,DBpedia:TopicalConcept",
"@surfaceForm": "Wednesday",
"@offset": "23",
"@similarityScore": "0.05826644226908684",
"@percentageOfSecondRank": "0.8666542759794764"
},
{
"@URI": "http://dbpedia.org/resource/United_States_Congress",
"@support": "7343",
"@types":
"Freebase:/protected_sites/natural_or_cultural_preservation_agency,Freebase:/protected_sites,Freebase:/book/book_subject,Freebase:/book,Freebase:/award/award_presenting_organization,Freebase:/award,Freebase:/government/governmental_body,Freebase:/government,Freebase:/business/employer,Freebase:/business,Freebase:/architecture/architectural_structure_owner,Freebase:/architecture,Freebase:/people/appointer,Freebase:/people,Freebase:/book/author,Freebase:/media_common/dedicator,Freebase:/media_common",
"@surfaceForm": "Congress",
"@offset": "36",
"@similarityScore": "0.12948767840862274",
"@percentageOfSecondRank": "0.818402118997152"
},
.....
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users