powerpoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_lodac2016... · 2016. 2....

25

Upload: others

Post on 08-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 2: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 3: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 4: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 5: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 6: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 7: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 8: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 9: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 10: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 11: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 12: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 13: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name

SELECT *

WHERE {

?food rdf:type schema:FoodEstablishment .

?food rdfs:label ?name .

FILTER regex(str(?name), " ")

} LIMIT 50

Page 14: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 15: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name

URL url = new URL("http://lod.fms.or.kr/resource/AR1978-0000009");

URLConnection con = url.openConnection();

BufferedReader in = new BufferedReader(

new InputStreamReader(con.getInputStream()));

Page 16: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name

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();

Page 17: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 18: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name

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

Page 19: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name

http://lod.nature.go.kr/resource/Juglans_mandshurica_MAX.

Page 20: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 21: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name

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

Page 22: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 23: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 24: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name
Page 25: PowerPoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_LODAC2016... · 2016. 2. 18. · SELECT * WHERE { ?food rdf:type schema:FoodEstablishment .food rdfs:label ?name

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