<?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">Gathering Photos from Social Networks using Semantic Technologies</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">M</forename><forename type="middle">B</forename><surname>Alves</surname></persName>
						</author>
						<author>
							<persName><forename type="first">C</forename><forename type="middle">V</forename><surname>Damásio</surname></persName>
						</author>
						<author>
							<persName><forename type="first">N</forename><surname>Correia</surname></persName>
						</author>
						<author>
							<affiliation key="aff0">
								<orgName type="laboratory">CENTRIA</orgName>
								<orgName type="institution">Universidade Nova de Lisboa</orgName>
								<address>
									<postCode>2829-516</postCode>
									<settlement>Caparica</settlement>
									<country key="PT">Portugal</country>
								</address>
							</affiliation>
						</author>
						<author>
							<affiliation key="aff1">
								<orgName type="laboratory">ESTG</orgName>
								<orgName type="institution">Instituto Politécnico de Viana do Castelo</orgName>
								<address>
									<postCode>4900-348</postCode>
									<settlement>Viana, Castelo</settlement>
								</address>
							</affiliation>
						</author>
						<author>
							<affiliation key="aff2">
								<orgName type="department">CITI</orgName>
								<orgName type="institution">Universidade Nova de Lisboa</orgName>
								<address>
									<postCode>2829-516</postCode>
									<settlement>Caparica</settlement>
									<country key="PT">Portugal</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Gathering Photos from Social Networks using Semantic Technologies</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">C0C84FC68E0058613DCACC5002FFD119</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-23T23:30+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>We present a system based on a Semantic Web approach to retrieve photos from events, organizations or even related to semantic concepts using context and social information, without require extra annotation work by the publishers. We make use of the knowledge of the system, represented in ontologies and semantic rules, to allow users search using its own terminology.</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>The motivation of our work is moving towards an easy searching and browsing of photos collections as is required by the huge amount of digital photo collections made available on the web by the photographers in different repositories, like Facebook, Picasa or Flickr. The gap between the photo information and the users desire is addressed by us through a Semantic Web approach, namely by a) associating photo metadata with precisely defined semantics, represented through ontologies <ref type="bibr" target="#b3">[4]</ref>, and b) through reasoning over this information. In this work, we describe a system that searches for photos on the web, that can be tailored to a specific domain like events, organisations, sports. We combine information that we have in ontologies with the information about the photos, either photo metadata or contextual information, to retrieve photos of a given event, from a given person, or in a given place. This system acts as a semantic mashup of photos collection, in other words, as a personal collection, but in reality these photos are spread in the web, social networks and photo databases. Our system requires a knowledge model of the domain, represented by a domain ontology and by rules. This information model gives to the system knowledge about the domain, allowing queries in a terminology recognised by the user. As a result, we are dealing with the semantic gap that exists in multimedia content <ref type="bibr" target="#b8">[9]</ref>, the lack of coincidence between the information that can be extracted from the photo and the meaning of that photo to the human. This document is organised as follows. In section 2 we present our approach and we explain how a semantic web approach can meet our purposes in photo retrieval. In section 3 we detail our system architecture and we explain each component of the architecture and we finish with the conclusions where we analyze our work and we present some benchmarking in section 4.</p><p>In our Semantic Web approach we use ontologies to formally describe the domain. Upper-level ontologies, describing very general concepts that are the same across all domains, are used to modelling concepts such as Events, Photos, Time, etc. In this work we have used: Ontology for Media Resources <ref type="bibr" target="#b4">[5]</ref>, to describe media resources; LODE <ref type="bibr" target="#b6">[7]</ref>, ontology for Linking Open Descriptions of Events; Time ontology <ref type="bibr" target="#b0">[1]</ref>, FOAF <ref type="bibr" target="#b1">[2]</ref> for describing persons. Each domain, for which we want to implement a photo retrieval engine with the approach described in this work, requires a particular domain ontology to represent the domain-specificities. We will model the domain ontology using OWL 2 <ref type="bibr" target="#b2">[3]</ref>. To overcome some of the OWL limitations <ref type="bibr" target="#b5">[6]</ref>, we also use semantic rules to add expressivity and expertise to our model, giving support to some object properties, which link individuals to individuals. Now, we will illustrate how our Semantic Web approach is used to support photos retrieval, giving meaning to the content. To simplify reading we will use the well known prefixes of the used ontologies and the prefix don is our domain ontology. In our domain ontology, we define an objectProperty isPhotoOfEvent having as domain ma:Image and as range lode:Event to make the relationship between photos and events instances. We define some rules to deduce, in our system, when a given Photo can belong to a given Event. These are general rules independent of the specific domain. Rule 1 is one of these rules, present using the syntax Conclusion &lt;-Premises(body atoms). Rule 1: (?Photo don:isPhotoOfEvent ?Event) &lt;-(?Photo don:wasTakenAtTimeOf ?Event), (?Photo don:wasTakenInSamePlace ?Event), (?Person don:isTaggedIn ?Photo), (?Person don:participates ?Event).</p><p>With Rule 1, we declare that a given Photo belongs to a given Event if: s1 ) the Photo was taken at the same time of the Event; s2 ) that Photo was taken in the same place of the Event; s3 ) there is at least one Person that was tagged in the Photo; s4 ) who participated in the Event. The first statement, s1, makes use of the objectProperty wasTakenAtTimeOf which is supported by rules to define if a given photo was taken while the event occurred. The isTaggedIn and participates are also object properties that define if a Person is tagged in a Photo and if a Person participates in a Event. Notice that Rule 1 cannot be captured by OWL 2 role inclusion chain axioms. In our system, we allow to give a confidence to a relation (real number between 0.0 and 1.0). The RDF reification vocabulary is extended to associate a confidence to each inferred triple used in search dimensions/values, according to the following pattern stating that a given Relation between a Subject and an Object has a given Confidence:</p><p>?bn rdf:subject Subject .</p><p>?bn rdf:predicate Relation .</p><p>?bn rdf:object Object . ?bn don:confidence Confidence .</p><p>As we can define queries with confidence we can define weaker relations, for instance between photos and events, and give a confidence to them. This confidence will be used in ranking the photos.</p><p>In figure <ref type="figure" target="#fig_0">1</ref> is represented the architecture of our tool. Our system uses the APIs of Facebook, Flickr and Picasa to retrieve the photos, the information associated with the photo and the context information. We simply use the information that we can obtain with the photo and the normal operations that the users usually perform: tagging photos, with text tags or people, indicate the place where the photos were taken, or give a name to an album. The information is extracted from the multimedia databases and is kept in a knowledge base to support the inference engine. The photos are available to the users through a web interface that retrieve the photos that answer to the users queries. ETL process -The Extract, Transform and Load process (ETL), acts like a web crawler. The metadata that we can get from these new photos is extracted and saved using the vocabulary specified by the Ontology for Media Resources. The transform task can make use of the semantic model and the rules to do inference and materialize some of the consequences in the pre-processing task due to performance issues. Semantic Model and rules -Each domain has its own vocabulary, the terms that are recognised by the users. Therefore, a domain ontology must be developed to represent the application domain, providing the knowledge of the domain that allows us to achieve a higher precision in the retrieval process. Without a domain ontology, we couldn't use these terms as a search dimension/facet. The query process and the interface -The users make queries through the Web interface. The system returns the links to the photos that are related to the queries. These queries are answered using the information kept in the knowledge base, making inferences from the semantic model and the rules. We have a semantic model to support the querying. This semantic model is a meta-model within which the classes of search dimensions are defined in the web interface. This meta-model, that must be tailored to each different domain, allows the system to know what must be searched. With this approach, we do not need any change in code in a new system. Everything is knowledge provided to the system and everything is kept outside in simple configuration files. As we can give a confidence to a relation, we can rank the images using the confidence value of inferred triples. System details -Our implementation is based on Jena framework<ref type="foot" target="#foot_0">1</ref> , which offers an "all-in-one" solution for Java, OWL reasoning, inference and rule engine. We use Pellet <ref type="bibr" target="#b7">[8]</ref> together with Jena to make OWL 2 inference. The TDB component of Jena is used for RDF storage and query.</p><p>In this work, we presented a system to retrieve photos using a Semantic Web approach. Our system uses the context information of the photo or annotations done by the user and other metadata that can be retrieved from social networks to combine with the knowledge of the system to classify the photos. The user can search for photos using its own terminology, creating dynamically its owns personal collections despite these photos are distributed along the web. . We can perform this because we have knowledge of the domain and, in this way, we try to overcome the problem of the semantic gap between the photos information and the means of that photo to the user. The precision and the recall of our system it is an open question, and depends of each new implemented domain and the requirements. If we want to give relevance to the precision, we define rules that represent exactly one relationship or, at most, with a high probability of occurrence. If we want to give relevance to the recall, we define rules to represent how relationships may happen, even if those rules bring some fake positive results. As we can introduce a confidence factor in our rules, we can give relevance to the recall but improving the F1-Score, a measure that combines precision and recall. Even though precision and recall be an open question, we performed some benchmarking with a small example using a Facebook account of a swimming club with 3599 friends. The system focused on 49 albums and 1148 photos. It were retrieved 431 photos, 425 of which were distributed over 9 albums. We had 100% precision in the retrieved photos. We inspected the photos of the swimming club events that were published but that were not retrieved, achieving a recall of 95,5%. An implementation in a real situation is on-going work that can be tried at http://www.estg.ipvc.pt/ ~mba/SemanticPhotosSearch/.</p><p>The system presented in this work was tailored to be enhanced at production time. The semantic model and the rules are kept in configuration files. Any change to these files only requires an re-initialisation of the system. Thus, we can readily improve our semantic model or our rules, adding new knowledge to our system or refining the existing one.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Fig. 1 .</head><label>1</label><figDesc>Fig. 1. System architecture of the photos retrieval engine</figDesc><graphic coords="3,307.68,267.58,184.19,70.87" type="bitmap" /></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0">https://jena.apache.org</note>
		</body>
		<back>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<monogr>
		<title level="m" type="main">Time ontology in OWL</title>
		<imprint>
			<date type="published" when="2005-09">September 2005</date>
			<publisher>Electronic</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<monogr>
		<author>
			<persName><forename type="first">D</forename><surname>Brickley</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Miller</surname></persName>
		</author>
		<title level="m">FOAF Vocab</title>
				<imprint>
			<date type="published" when="2010">2010</date>
		</imprint>
	</monogr>
	<note>Spec. 0.97. Namespace doc</note>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">OWL2: The next step for OWL</title>
		<author>
			<persName><surname>Cuenca</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Web Semantics</title>
		<imprint>
			<biblScope unit="volume">6</biblScope>
			<biblScope unit="issue">4</biblScope>
			<biblScope unit="page" from="309" to="322" />
			<date type="published" when="2008">2008</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Logic and ontology</title>
		<author>
			<persName><forename type="first">T</forename><surname>Hofweber</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">The Stanford Ency. of Phil. Spring</title>
				<imprint>
			<date type="published" when="2009">2009</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Ontology for Media Resources 1.0</title>
		<author>
			<persName><surname>Lee</surname></persName>
		</author>
		<ptr target="http://www.w3.org/TR/mediaont-10/" />
	</analytic>
	<monogr>
		<title level="m">W3C Recommendation</title>
				<imprint>
			<date type="published" when="2012-02">Feb. 2012</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<monogr>
		<title level="m" type="main">Cautiously approaching SWRL</title>
		<author>
			<persName><forename type="first">B</forename><surname>Parsia</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2005">2005</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">Lode: Linking open descriptions of events</title>
		<author>
			<persName><forename type="first">R</forename><surname>Shaw</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proc. of the 4th Asian Conf. on The Semantic Web, ASWC &apos;09</title>
				<meeting>of the 4th Asian Conf. on The Semantic Web, ASWC &apos;09<address><addrLine>Berlin, Heidelberg</addrLine></address></meeting>
		<imprint>
			<date type="published" when="2009">2009</date>
			<biblScope unit="page" from="153" to="167" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<analytic>
		<title level="a" type="main">Pellet: A practical OWL-DL reasoner</title>
		<author>
			<persName><forename type="first">E</forename><surname>Sirin</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Web Semantics: Science, Services and Agents on the World Wide Web</title>
		<imprint>
			<biblScope unit="volume">5</biblScope>
			<biblScope unit="issue">2</biblScope>
			<biblScope unit="page" from="51" to="53" />
			<date type="published" when="2007-06">jun 2007</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<monogr>
		<title level="m" type="main">Content-based image retrieval at the end of the early years</title>
		<author>
			<persName><surname>Smeulders</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2000">2000</date>
		</imprint>
	</monogr>
</biblStruct>

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