<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Geospatial Linked Open Services</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Barry</forename><surname>Norton</surname></persName>
							<affiliation key="aff0">
								<orgName type="institution" key="instit1">AIFB</orgName>
								<orgName type="institution" key="instit2">Karlsruhe Institute of Technology</orgName>
								<address>
									<country key="DE">Germany</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Reto</forename><surname>Krummenacher</surname></persName>
							<affiliation key="aff1">
								<orgName type="department">Semantic Technology Institute</orgName>
								<orgName type="institution">University of Innsbruck</orgName>
								<address>
									<country key="AT">Austria</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Geospatial Linked Open Services</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">F802F2F61A3C14BFB9DD1CD0E2C1AB9B</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T03:05+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Linked Open Services are a principled attempt to guide the creation and exposure of online services, in order to enable productive use of, and contribution to, Linked Data. They communicate RDF directly, via HTTP-based interaction, and their contribution to the consumer's knowledge, in terms of Linked Data, is described using SPARQL. To achieve this they bring together, and extend, the principles of Linked Data and of REST. In this paper we focus on the development of Linked Open Services for the geospatial domain and explain how they overcome the short-comings of existing services over the geonames dataset, a core part of the Linked Open Data Cloud.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>On the most basic level Linked Open Services (LOS<ref type="foot" target="#foot_0">1</ref> ) <ref type="bibr" target="#b2">[3]</ref> concern the open exposure of functionalities on the Web using semantic technologies. This is by no means a novel aim, and has been pursued by so-called 'Semantic Web Services' for a number of years. Semantic Web Services, however, largely build on the WS-* Stack, apply semantics within closed platforms -such as the OWL-S Virtual Machine <ref type="bibr" target="#b4">[5]</ref>, WSMX <ref type="bibr" target="#b1">[2]</ref> and IRS-III <ref type="bibr" target="#b0">[1]</ref> -and target integration within (XML-based) enterprise systems. LOS, on the other hand, are primarily intended to provide reusable functionalities to Linked Data-aware clients.</p><p>The aim of LOS is not just to apply the existing Linked Data principles to services, an approach already proposed in <ref type="bibr" target="#b5">[6]</ref>, but to propose a list of further service-specific principles to be followed in openly exposing services over Linked Data: Associated with the last principle is an optional fourth:</p><p>4 When wrapping non-LOS services, extend the (lifted, if non-RDF) message to make explicit the implicit knowledge, and to use Linked Data vocabularies, using SPARQL CONSTRUCT queries.</p><p>Perhaps the most important important vocabulary for geospatial information is the encoding of the coordinate system of the 1984 World Geodetic System, WGS84 <ref type="bibr" target="#b3">[4]</ref>, in RDF Schema 2 . The International Civil Aviation Organisation (ICAO) is responsible for giving identifiers to airports, and for a standard scheme for encoding weather observations, taken up internationally by the World Meteorological Organization, METAR <ref type="bibr" target="#b6">[7]</ref>. While there is a record of an RDF encoding of ICAO codes for airport information, this has been lost due to the Web. Similarly there was a, pre-Web Ontology Language, partial METAR encoding in DAML recorded from the University of Maryland (in the DAML Ontology Library 3 ), which is lost, and an extant one (of unclear relationship to the other) from the University of Aberdeen 4 .</p><p>In order to support location-based weather reports as Linked Open Services, we therefore work with a standards-based (RDFS) adaptation to the existing DAML METAR ontology, convert (JSON-based) METAR reports into RDF using the classes and properties defined, and then recreate Linked Data resources for ICAO-identified airports, minting new URIs based on these codes. As well as referring to these resources in weather requests from ad hoc locations, also encoded using the WGS84 vocabulary, we attach airport-specific requests to the resources themselves in RESTful style, demonstrating the natural fit of the full scope of RESTful services (beyond GET methods) and Linked Data. In the following Section 2 explains how the conversion fits over the existing geonames service as a Linked Open Service wrapper, Section 3 explains how the resource-based services operate alongside standard Linked Data principles. Finally, we conclude in Section 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">LOS Wrappers</head><p>Currently XML and JSON (plus, perhaps, YAML) are the predominant syntaxes for the exchange of dynamic information on the Web in general, including specifically, which is unfortunate, for a significant number of services over the Linked (Open) Data Cloud. We point out, for example, that all but one of the 36 GeoNames services, including METAR-based weather services, do not support RDF (most support JSON, with XML in close second). In order to expose such non-RDF Web services as LOS, it is necessary to transform from RDF to the expected data format of the service implementation, and to map the output of the service back into RDF. In the case of the procedure-oriented GeoNames Weather services (nearby to point, and within bounding box), the invocation is triggered by an HTTP POST request, and the result data is serialized as either a JSON Array or an XML document. Our LOS versions of these weather services are available at http://www.linkedopenservices.org/services/geonames/weather/, where the LOS-specific input and output descriptions are given as exemplified below. In the simplest case the transformation consists of applying the generic 'JSON2RDF' library 5 (which creates no real semantics, but puts the data into graph form so it can be queried), followed by a SPARQL CONSTRUCT query (into instances in existing vocabularies) in order to automatically create a useful RDF model. As well as using existing standard predicates to give semantics to the output data in itself, the query is enabled to create links between input and output data, encoding knowledge that is normally only implicit in service interaction ("this is the weather nearest to the point..."), and the machinery may also encode provenance information ("according to an invocation of [service X] at [time Y]".</p><p>The query has a head equal to the output pattern of the LOS, and is hence an explicit specification of how to transform the internal json2rdf data into an RDF graph that provides the promised knowledge contribution of the service. For the particular case of our LOS! GeoNames Weather service we introduced an additional intermediate step that lifts the string values of, for example, json2rdf:clouds to a URL of the enhanced METAR ontology (metar:FewClouds). 6 Among the extensions we have made there are internationalised labels for the different weather conditions, extended beyond those offered by the geonames services.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Resource-Oriented LOS</head><p>The services in the previous section return lists of airport-based weather stations (identified by 'ICAO' codes) with the most recent weather observation, according to their proximity to some transient geographical input. Geonames also, however, offers a service 'weatherIcao' that returns the weather for a given METAR station. Unfortunately neither does geonames give a Linked Data style resolvable URI for these stations, nor does the previous attempt to form Linked Data from them 7 seem still to exist. At the LOS community website we have therefore decided to adopt a resource-oriented (i.e., truly RESTful) approach to METAR stations as spatial resources. The collection For ICAO (we have also minted URIs for IATA, International Air Transport Association, codes) more than 50 000 triples have been created of the following pattern:</p><p>Output:</p><p>_:airport rdf:type point:ICAO ; wgs84:lat ?lat ; wgs84:long ?long ; wgs84:alt ?alt ; rdf:label ?label OPTIONAL {_:airport owl:sameAs ?iata . ?iata a point:IATA}</p><p>The most important consequence of the exposure of these resources for LOS, however, is that they are the basis for supporting a resource-oriented version of the weather service, which can be invoked simply by GETting from corresponding URIs of the form: http://www.linkedopenservices.org/services/geo/SpatialResources/point/{ex}/weather This returns RDF of a similar scheme to that presented in the last section.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Conclusion</head><p>In this paper we have motivated and introduced the principles guiding the creation of Linked Open Services and their application to geospatial data. We have illustrated how simple wrappers can be formed from existing procedure-oriented services and furthermore how a resource-oriented service can optimally combine the principles of REST and of Linked Data. In both cases RDF is available, via HTTP content negotation, for direct communication and SPARQL graph patterns are used to describe the required input, and the expected output, capturing the full knowledge contribution of service execution.</p><p>A LOS wrapper specifies not only what graph patterns a service consumes and produces, respectively, but also how the input RDF is 'lowered' to the expected data format of the service, respectively how the output of the service is 'lifted' back to RDF by means of a SPARQL CON-STRUCT with a head equal to the output pattern. We have already produced a helpful library, JSON2RDF, to aid this wrapping process.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_0"><head>1 .</head><label>1</label><figDesc>Describe services as LOD prosumers with input and output descriptions as SPARQL graph patterns. 2. Communicate RDF by RESTful content negotiation. 3. Communicate and describe the knowledge contribution resulting from service interaction, including implicit knowledge relating input, output and service provider.</figDesc><table /></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0">Or, more ambitiously, the exhortation 'LOS!'</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_1">http://www.linkedopenservices.org/services/geo/SpatialResources/point/ has been expanded to include the current METAR lists. 5http://www.linkedopenservices.org/wiki/index.php/JSON2RDF<ref type="bibr" target="#b5">6</ref> The ontology at http://www.linkedopenservice.org/ns/METAR is an extension to the DAML ontology discussed above.<ref type="bibr" target="#b6">7</ref> See: http://lists.xml.org/archives/xml-dev/199907/msg00415.html</note>
		</body>
		<back>

			<div type="acknowledgement">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Acknowledgement:</head><p>The work is supported by the EU projects SOA4All and SEALS.</p></div>
			</div>

			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">IRS III: A Platform and Infrastructure for Creating WSMO-based Semantic Web Services</title>
		<author>
			<persName><forename type="first">J</forename><surname>Domingue</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Cabral</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Hakimpour</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Sell</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Motta</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the Workshop on WSMO Implementations</title>
				<meeting>the Workshop on WSMO Implementations<address><addrLine>WIW</addrLine></address></meeting>
		<imprint>
			<date type="published" when="2004">2004. 2004</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Wsmx -a semantic service-oriented architecture</title>
		<author>
			<persName><forename type="first">A</forename><surname>Haller</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Cimpian</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Mocan</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Oren</surname></persName>
		</author>
		<author>
			<persName><forename type="first">C</forename><surname>Bussler</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">ICWS &apos;05: Proceedings of the IEEE International Conference on Web Services</title>
				<imprint>
			<publisher>IEEE Computer Society</publisher>
			<date type="published" when="2005">2005</date>
			<biblScope unit="page" from="321" to="328" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Towards Linked Open Services</title>
		<author>
			<persName><forename type="first">R</forename><surname>Krummenacher</surname></persName>
		</author>
		<author>
			<persName><forename type="first">B</forename><surname>Norton</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Marte</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">3rd Future Internet Symposium</title>
				<imprint>
			<date type="published" when="2010-09">September 2010</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<monogr>
		<title level="m">National Imagery and Mapping Agency: World geodetic system</title>
				<imprint>
			<publisher>Tech. rep., National Imagery and Mapping Agency</publisher>
			<date type="published" when="1984">1984. 2004</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">The DAML-S virtual machine</title>
		<author>
			<persName><forename type="first">M</forename><surname>Paolucci</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Ankolekar</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Srinivasan</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Sycara</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">The SemanticWeb -ISWC 2003</title>
				<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="2003">2003</date>
			<biblScope unit="volume">2870</biblScope>
			<biblScope unit="page" from="290" to="305" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Services and the Web of Data: An Unexploited Symbiosis</title>
		<author>
			<persName><forename type="first">C</forename><surname>Pedrinaci</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Domingue</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Krummenacher</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">AAAI Spring Symposium</title>
				<imprint>
			<date type="published" when="2010-03">March 2010</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<monogr>
		<title level="m">World Meteorological Organization: Aerodrome reports and forecasts: A user&apos;s handbook to the codes</title>
				<imprint>
			<publisher>World Meteorological Organization</publisher>
			<date type="published" when="2008">2008</date>
		</imprint>
	</monogr>
	<note type="report_type">Tech. rep</note>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
