Upgrade to Pro — share decks privately, control downloads, hide ads and more …

쉽게 이해하는 LOD

Avatar for LODAC LODAC
February 18, 2016

쉽게 이해하는 LOD

Avatar for LODAC

LODAC

February 18, 2016
Tweet

More Decks by LODAC

Other Decks in Technology

Transcript

  1. SELECT * WHERE { ?food rdf:type schema:FoodEstablishment . ?food rdfs:label

    ?name . FILTER regex(str(?name), " ") } LIMIT 50
  2. String endPoint = "http://lod.seoul.go.kr/sparql"; String queryString = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

    " + "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>" + "PREFIX schema: <http://schema.org/> " + "SELECT * " + "WHERE { " + "?food rdf:type schema:FoodEstablishment ." + "?food rdfs:label ?name . " + "FILTER regex(str(?name), \"Bar\") " + "} LIMIT 50"; Query query = QueryFactory.create(queryString); QueryEngineHTTP httpQuery = new QueryEngineHTTP(endPoint, query); ResultSet results = httpQuery.execSelect();
  3. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX no: <http://lod.nature.go.kr/ontology/> PREFIX ni: <http://lod.nature.go.kr/resource/> SELECT

    ?plant ?name ?desc WHERE { ?plant no:kingdom ni:Plantae . ?plant rdfs:label ?name . ?plant no:generalDescription ?desc . } LIMIT 50
  4. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX no: <http://lod.nature.go.kr/ontology/> PREFIX ni: <http://lod.nature.go.kr/resource/> SELECT

    ?plant ?name WHERE { ?plant no:hasGrowingBehavior ni:DeciduousBroadleafArbor . ?plant rdfs:label ?name . } LIMIT 50
  5. Dr. Myungjin Lee e-Mail : [email protected] Facebook : http://www.facebook.com/mjinlee SlideShare

    : http://www.slideshare.net/onlyjiny/ Linkedin : http://linkedin.com/pub/myungjin-lee