Weitere ähnliche Inhalte Ähnlich wie Automating the Use of Web APIs through Lightweight Semantics (20) Kürzlich hochgeladen (20) Automating the Use of Web APIs through Lightweight Semantics11. The Ecosystem of APIs and Online Data ©Siri (sligthly modified) Over 3500 APIs and 5100 Mashups growing at accelerated rate... 24. SPARQL Select Example PREFIX foaf: http://xmlns.com/foaf/0.1/ SELECT ?name1 ?name2 WHERE { ?x foaf:name ?name1 ; foaf:mbox ?mbox1 . ?y foaf:name ?name2 ; foaf:mbox ?mbox2 . FILTER (sameTerm(?mbox1, ?mbox2) && !sameTerm(?name1, ?name2)) } 25. SPARQL Construct Example PREFIX foaf: http://xmlns.com/foaf/0.1/ PREFIX vcard: http://www.w3.org/2001/vcard-rdf/3.0# CONSTRUCT { ?x vcard:N _:v . _:v vcard:givenName ?gname . _:v vcard:familyName ?fname } WHERE { { ?x foaf:firstname ?gname } UNION { ?x foaf:givenname ?gname } . { ?x foaf:surname ?fname } UNION { ?x foaf:family_name ?fname } . } 89. Example Response HTTP/1.0 200 OK Connection: close Date: Thu, 06 Aug 1998 12:00:15 GMT Server: Apache/1.3.0 (Unix) Last-Modified: Mon, 22 Jun 1998 …... Content-Length: 6821 Content-Type: text/html data data data data data ... status line (protocol status code status phrase) header lines data, e.g., requested html file 101. Lifting declare namespace foaf="http://xmlns.com/foaf/0.1"; declare namespace mo="http://purl.org/ontology/mo/"; let $doc :=doc("OriginalOutputFile") for $listing in $doc//artist let $name := $listing/name let $id := $listing/mbid let $url := $listing/url let $image := $listing/image[@size='medium'] construct { _:p a mo:Artist; foaf:name {data($name)}; mo:musicbrainz_guid {data($id)}; mo:homepage {data($url)}; mo:image {data($image)}; } Hinweis der Redaktion Introduction (15min) Carlos: SOA (Publish, discover, invoke) Trends Web APIs- Current State Lessons One client to invoke them all