powerpoint 프레젠테이션dakchigo.kr/events/part9/pdf/5_이명진_lodac2016... · 2016. 2....
Post on 08-Oct-2020
0 Views
Preview:
TRANSCRIPT
SELECT *
WHERE {
?food rdf:type schema:FoodEstablishment .
?food rdfs:label ?name .
FILTER regex(str(?name), " ")
} LIMIT 50
URL url = new URL("http://lod.fms.or.kr/resource/AR1978-0000009");
URLConnection con = url.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
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();
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
http://lod.nature.go.kr/resource/Juglans_mandshurica_MAX.
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
Dr. Myungjin Lee
e-Mail : mjlee@li-st.com
Facebook : http://www.facebook.com/mjinlee
SlideShare : http://www.slideshare.net/onlyjiny/
Linkedin : http://linkedin.com/pub/myungjin-lee
top related