{{Infobox standardref | image = | title = GoodRelations | year_started = 2001<ref>{{cite web|url=http://wiki.goodrelations-vocabulary.org/History|title=History – GoodRelations Wiki|website=wiki.goodrelations-vocabulary.org}}</ref> | organization = | base_standards = URI, OWL, RDFa | related_standards = Microformat, RDFS, N-Triples, Turtle, JSON, JSON-LD, CSV | abbreviation = schema | domain = Semantic Web | license = CC-BY-SA 3.0<ref>{{cite web|url=http://wiki.goodrelations-vocabulary.org/GoodRelations_Wiki:Copyrights|title=GoodRelations Wiki:Copyrights – GoodRelations Wiki|website=wiki.goodrelations-vocabulary.org}}</ref> | website = {{URL|http://purl.org/goodrelations/}} }}

'''GoodRelations''' is a Web Ontology Language-compliant ontology for Semantic Web online data, dealing with business-related goods and services.{{sfn|Antoniou|Harmelen|Hoekstra|2012|p=176}} It handles the individual relationships between a buyer, a seller and the products and services offered. In November 2012, it was integrated into the Schema.org ontology.{{sfn|Hepp|Hoffner|2014|p=34}}

==Usage== GoodRelations became popular owing to its success in improving search engine results.{{sfn|Antoniou|Harmelen|Hoekstra|2012|pp=176-177}}

By 2009, the ontology's ''Product'' concept was being used to describe over a million products and their prices.{{sfn|Siegel|2009|p=71}} By 2013, GoodRelations had been adopted by the search engines Yahoo!,<ref name="ashraf">{{cite journal |quote=To comprehensively understand the usage patterns of conceptual knowledge, instance data, and ontology co-usability, we considered GoodRelations ontology as the domain ontology and built a dataset by collecting structured data from 211 web-based data sources that have published information using the domain ontology. |doi=10.1002/cpe.3089 |date=4 July 2013 |title=Empirical analysis of domain ontology usage on the Web: eCommerce domain in focus |first1=Jamshaid |last1=Ashraf |first2=Omar Khadeer |last2=Hussain |first3=Farookh Khadeer |last3=Hussain |volume=26 |issue=5 |pages = 1157–1184|journal=Concurrency and Computation: Practice and Experience |s2cid=44337539 }}</ref>{{sfn|Sikos|2015|p=16}} Google,<ref name="ashraf" /> and Bing.<ref name="ashraf" /> An analysis of online e-commerce data providers at that time found it to be the most prevalent ontology in use.<ref name="ashraf"/> As of mid-2015, GoodRelations had become the ''de facto'' ontology for e-commerce,{{sfn|Sikos|2015|p=16}}<ref name="Vojtěch">{{cite journal |doi=10.1016/j.websem.2016.07.002 |title=Adapting ontologies to best-practice artifacts using transformation patterns: Method, implementation and use cases |first1=Vojtěch |last1=Svátek |first2=Marek |last2=Dudáš |first3=Ondřej |last3=Zamazal |journal=Web Semantics: Science, Services and Agents on the World Wide Web |volume=40 |pages=52–64 |date=October 2016 }}</ref> and was in widespread use, having been adopted by retailers such as Best Buy.{{sfn|Sikos|2015|p=16}}

GoodRelations is additionally used in academic studies of the Semantic Web,<ref>{{cite journal|title=Creating a semantically-enhanced cloud services environment through ontology evolution|first1=Miguel Ángel|last1=Rodríguez-García|first2=Rafael|last2=Valencia-García|first3=Francisco|last3=García-Sánchez|first4=J. Javier|last4=Samper-Zapater|date=1 March 2014|journal=Future Generation Computer Systems|volume=32|pages=295–306|doi=10.1016/j.future.2013.08.003}}</ref><ref>{{cite book|title=Covering the Semantic Space of Tourism: An Approach Based on Modularized Ontologies|first1=Robert|last1=Barta|first2=Christina|last2=Feilmayr|first3=Birgit|last3=Pröll|first4=Christoph|last4=Grün|first5=Hannes|last5=Werthner|date=3 July 2017|publisher=ACM|pages=1:1–1:8|doi=10.1145/1552262.1552263|chapter = Covering the semantic space of tourism|isbn = 9781605585284|s2cid=18590141}}</ref> as a core ontology.<ref name="ashraf"/><ref name="Vojtěch"/>

==Example==

A shop, restaurant, or store, and its opening hours, may be specified using GoodRelations as in this example, which also uses vCard and FOAF:<ref>{{CCBYSASource|sourcepath=http://wiki.goodrelations-vocabulary.org/index.php?title=Quickstart&oldid=2877#Shop.2C_Restaurant.2C_or_Store.2C_and_Opening_Hours|sourcearticle=Quickstart|revision=788969264|authors(s)=Martin Hepp, Andreas Radinger, Alex Stolz}}</ref>

<syntaxhighlight lang="xml"> <div xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:gr="http://purl.org/goodrelations/v1#" xmlns:vcard="http://www.w3.org/2006/vcard/ns#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">

<div about="#store" typeof="gr:Location"> <div property="gr:name" content="Pizzeria La Mamma"></div> <div rel="vcard:adr"> <div typeof="vcard:Address"> <div property="vcard:country-name" content="Germany"></div> <div property="vcard:locality" content="Munich"></div> <div property="vcard:postal-code" content="85577"></div> <div property="vcard:street-address" content="1234 Main Street"></div> </div> </div> <div property="vcard:tel" content="+33 408 970-6104"></div> <div rel="foaf:depiction" resource="http://www.pizza-la-mamma.com/image_or_logo.png"> </div> <div rel="vcard:geo"> <div> <div property="vcard:latitude" content="48.08" datatype="xsd:float"></div> <div property="vcard:longitude" content="11.64" datatype="xsd:float"></div> </div> </div> <div rel="gr:hasOpeningHoursSpecification"> <div about="#mon_fri" typeof="gr:OpeningHoursSpecification"> <div property="gr:opens" content="08:00:00" datatype="xsd:time"></div> <div property="gr:closes" content="18:00:00" datatype="xsd:time"></div> <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Friday"></div> <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Thursday"></div> <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Wednesday"></div> <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Tuesday"></div> <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Monday"></div> </div> </div> <div rel="gr:hasOpeningHoursSpecification"> <div about="#sat" typeof="gr:OpeningHoursSpecification"> <div property="gr:opens" content="08:30:00" datatype="xsd:time"></div> <div property="gr:closes" content="14:00:00" datatype="xsd:time"></div> <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Saturday"></div> </div> </div> <div rel="foaf:page" resource=""></div> </div> </div> </syntaxhighlight>

==References== '''Citations''' {{reflist|30em}} '''Sources''' {{refbegin}} * {{cite book|first=Leslie|last=Sikos|title=Mastering Structured Data on the Semantic Web: From HTML5 Microdata to Linked Open Data|publisher=Apress|year=2015|isbn=978-1-484-21049-9|url=https://books.google.com/books?id=mGYnCgAAQBAJ&q=goodrelations&pg=PA16}} * {{cite book|first1=Grigoris|last1=Antoniou|first2=Frank van|last2=Harmelen|first3=Rinke|last3=Hoekstra|title=A Semantic Web Primer|publisher=MIT Press|year=2012|isbn=978-0-262-01828-9|url=https://books.google.com/books?id=tYb6AQAAQBAJ&q=goodrelations&pg=PA175}} * {{cite book|first1=Martin|last1=Hepp|first2=Yigal|last2=Hoffner|title=E-Commerce and Web Technologies: 15th International Conference, EC-Web 2014, Munich, Germany, September 1–4, 2014, Proceedings|year=2014|isbn=978-3-319-10491-1}} * {{cite book|first=David|last=Siegel|title=Pull: The Power of the Semantic Web to Transform Your Business|publisher=Penguin|year=2009|isbn=978-1-101-16303-0}} {{refend}}

Category:Semantic Web