Back to Top

 

Linked Data Support: Entity Extraction

Linked Data Support: Entity Extraction

AlchemyAPI provides comprehensive support for RDF and Linked Data, enabling any content to be brought into the "Semantic Web" world with relative ease.

What is Linked Data?

Linked Data is a method of exposing, sharing, and connecting data on the Web via dereferenceable URIs. Linked Data aims to extend the Web with a data commons by publishing various open datasets as RDF on the Web and by setting RDF links between data items from different data sources. The Linked Data cloud currently consists of over 7.4 billion RDF triples, interlinked by 142+ million RDF links.

AlchemyAPI leverages Linked Data to provide additional information describing named entities detected within a piece of content.

What Linked Data Resources Are Supported?

AlchemyAPI integrates with a variety of resources within the Linked Data cloud, enriching your content. Listed below are the Linked Data resources currently leveraged by AlchemyAPI:

Freebase US Census GeoNames
UMBEL OpenCyc YAGO
MusicBrainz CIA Factbook CrunchBase

How Do I Use It?

Linked data output is enabled by default, so you don't have to do anything to use it. If for some reason you desire to disable linked data output, you may utilize the following HTTP parameter with your API calls:

    linkedData=0

NOTE: Linked data output is currently available for English-language content only. Support for outputting linked data for entities in other languages is currently in development.

What Does AlchemyAPI Linked Data Look Like?

Whenever an entity is successfully disambiguated, Linked Data is included in API responses. This includes "sameAs" RDF links to related objects in the Linked Data cloud. The following is an example RDF-formatted Linked Data response (for the state of "Massachusetts"):

<rdf:Description rdf:ID="dc44264a56a6eb71dce2b3ab22b953cd0095b0e2e-se_2">
    <rdf:type rdf:resource="http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema#EntityOccurrence"/>
    <aapi:Doc>dc44264a56a6eb71dce2b3ab22b953cd0095b0e2e
    <aapi:EntityType>StateOrCounty
    <aapi:Name>Mass.
    <aapi:Disambiguation>
        <rdf:Description rdf:about="#dc44264a56a6eb71dce2b3ab22b953cd0095b0e2e-se_2">
            <rdf:type rdf:resource="http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema#Disambiguation"/>
            <aapi:Doc>dc44264a56a6eb71dce2b3ab22b953cd0095b0e2e</aapi:Doc>
            <aapi:EntityGUID>gd429907f8fad8de61eed79786629c962a0844da0</aapi:EntityGUID>
            <aapi:ResolvedName>Massachusetts</aapi:ResolvedName>
            <aapi:URL>www.mass.gov</aapi:URL>
            <owl:sameAs rdf:resource="http://www.dbpedia.org/resource/Massachusetts"/>
            <owl:sameAs rdf:resource="http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000589f0a"/>
            <owl:sameAs rdf:resource="http://umbel.org/umbel/ne/wikipedia/Massachusetts"/>
            <owl:sameAs rdf:resource="http://sw.opencyc.org/concept/Mx4rvVi4QpwpEbGdrcN5Y29ycA"/>
            <owl:sameAs rdf:resource="http://mpii.de/yago/resource/Massachusetts"/>
        </rdf:Description>
    </aapi:Disambiguation>
</rdf:Description>


NOTE: Linked Data is supported within all AlchemyAPI response formats, including XML, JSON, and RDF.