Querying the Linked Data Cloud with LDPath


a Simple Query Language


Bethany Seeger

bseeger@amherst.edu

RDF Triple:

              
               </resources/001/> dcterms:subject
        <http://id.loc.gov/authorities/childrensSubjects/sj00008021>
              
            

LD Path:

context URI: "http://localhost:8080/fcrepo/rest/resources/001/"
              

@prefix dcterms : <http://purl.org/dc/terms/> ;

subjectLabel = dcterms:subject / skos:prefLabel ::xsd:string ;
subjectLabelAlt = dcterms:subject / skos:altLabel ::xsd:string ;
              
            
              
$> curl -X POST -H "Content-type: application/ldpath" -d @program.ldpath
      http://localhost:9086/ldpath/resources/001
              
              

Response:

              

{
  "subjectLabel":[
    "Belongings, Personal"
  ],
  "subjectLabelAlt":[
    "Personal paraphernalia",
    "Personal belongings",
    "Stuff"
  ]
}
              
            

RDF Triples:

                
</resources/001/>
      dcterms:subject
          <http://id.loc.gov/authorities/childrensSubjects/sj00008021> ,
          <http://vocab.getty.edu/aat/300054391> ;
                
              

LD Path:

context URI: "http://localhost:8080/fcrepo/rest/resources/001/"
                
@prefix dcterms : <http://purl.org/dc/terms/> ;

subjectLabels = dcterms:subject /
               (skos:prefLabel | rdfs:label) ::xsd:string ;
                
              

Response:

                
{
    "subjectLabels":[
      "Belongings, Personal",
      "population geography"
    ]
}
                
              

Apache Marmotta - LDP Server, client libraries

Who uses LD Path?

  • Apache Stanbol
  • Fedora Camel Tool Box - LD Path Service (http://goo.gl/hkcdvN)