logo

PanLex: RDF

 

LOD Cloud Linking Open Data cloud diagram, by Richard Cyganiak and Anja Jentzsch. CC-BY-SA. lod-cloud.net

Overview

On this page we collect our efforts of making PanLex part of the Linked Open Data cloud, which offers the following advantages:





Downloads

Full Dump (~872MB) (Preview)
DBpedia Links (~19MB) (Preview)
Ontology (~3.3K)


Online Access

Example Resources:

Example Queries:

List translations for the lexeme "translation" Compact translation table for "dictionary"
Prefix plx: <http://ld.panlex.org/plx/>
Select ?ta ?m ?tb ?lvl ?l {
    ?ea rdfs:label ?ta .

    ?da plx:denotationExpression ?ea .
    ?da plx:denotationMeaning ?m .
    ?db plx:denotationMeaning ?m .
    ?db plx:denotationExpression ?eb .

    ?eb rdfs:label ?tb .
    ?eb plx:languageVariety ?lv .
    ?lv rdfs:label ?lvl .
    ?lv plx:languageVarietyOf ?l .

    Filter(?ta = "translation"^^xsd:string)
}
Order By ?ta ?m ?tb ?lvl ?l
Prefix plx: <http://ld.panlex.org/plx/>
SELECT Distinct ?al ?alv ?alvl ?bl ?blvl ?blvo {
    ?ae rdfs:label ?al .
    ?ae plx:languageVariety ?alv .
    ?alv rdfs:label ?alvl .
    ?alv plx:languageVarietyOf ?alvo .
    ?alvo plx:iso639-3Code <http://ld.panlex.org/plx/iso639-3/eng> .

    ?ad plx:denotationExpression ?ae .
    ?ad plx:denotationMeaning ?m .
    ?bd plx:denotationMeaning ?m .
    ?bd plx:denotationExpression ?be .

    ?be rdfs:label ?bl .
    ?be plx:languageVariety ?blv .
    ?blv rdfs:label ?blvl .
    ?blv plx:languageVarietyOf ?blvo .

    Filter(?al = "dictionary"^^xsd:string)
}
Order By ?al ?blvl ?bl ?blvo
Run It! Run It!


The PanLex Ontology

These two images provide an overview of how classes and properties in the RDF version of PanLex relate.

PanLex Ontology Instance Example PanLex Ontology Schema

Dataset Metrics

The following table summarizes the number of triples, classes and properties.

Triples: 272.043.070
Classes: 9
Properties: 8

This table lists the number of instances per class:

ClassInstances
Approvers3,905
Expressions18,580,594
Languages7,839
Language Varieties7,248
Meanings20,023,427
Definitions2,522,605
Denotations50,803,243
Users7
Licenses10


Licenses

As PanLex is comprised of thousands of data sources, license information is included in the dataset for each approver. The following table shows some examples on this subject.

List all available licenses and their usage count List approvers and their license List approvers under public domain license
Prefix plx: <http://ld.panlex.org/plx/>
Select ?l (Count(*) As ?c) {
  ?s plx:license ?l
}
Group By ?l
Prefix plx: <http://ld.panlex.org/plx/>
Select * {
  ?s
    a plx:Approver ;
    plx:license ?l
}
Limit 100
Prefix plx: <http://ld.panlex.org/plx/>
Select * {
  ?s
    a plx:Approver ;
    plx:license <http://ld.panlex.org/plx/license/nr>
}
Limit 100
Run it! Run it! Run it!


How the RDF data is generated

The PanLex RDF dataset is created using the Sparqlify RDB-RDF mapping tool. The corresponding RDF view definitions are available here. The Linked Data interface is powered directly by the PanLex's Postgres database. For improved query performance, the source data is also dumped as RDF and loaded into an OpenLink's Virtuoso RDF store.


PanLex Logo AKSW Logo OpenLink Virtuoso Logo

Valid XHTML 1.1!