Warning: This tool or project is no longer maintained and kept available only for archival purposes. Since GoodRelations and schema.org have evolved significantly in the past years, the current status available on this page is unlikely to function as expected. We take no responsibility for any damage caused by the use of this outdated work, to the extent legally possible.

Due to a lack of resources, we are unable to provide support for this project outside of consulting projects or sponsored research. Please contact us if you can contribute resources to update and enhance these resources.

GoodRelations - The Web Vocabulary for E-Commerce

This is the archive of the goodrelations dicussion list

GoodRelations is a standardized vocabulary for product, price, and company data that can (1) be embedded into existing static and dynamic Web pages and that (2) can be processed by other computers. This increases the visibility of your products and services in the latest generation of search engines, recommender systems, and other novel applications.

[goodrelations] gr:categories

Bene Rodriguez beroca at gmail.com
Mon Jun 3 11:36:12 CEST 2013


Hi Paul,

Not sure if I understood your questions and their context correctly.

Regarding 1), if by category you refer to the "gr:category" property
(http://www.heppnetz.de/ontologies/goodrelations/v1.html#category),
you can link more than one category to a particular product by
populating gr:category more than once.

For example, if we had a pair of shoes known as "Acme123", and we
wanted to link this shoe to two categories from the Product
Classification Scheme by Google
(http://www.google.com/basepages/producttype/taxonomy.en-US.txt) such
as "Walking Shoes" and "Sneakers", then we could use the following
snippet in Turtle:

@prefix ex: http://www.example.org/myshop/

ex:Acme123
    a gr:ProductOrService ;
    gr:category "Apparel & Accessories > Shoes > Athletic Shoes >
Walking Shoes"@en ;
    gr:category "Apparel & Accessories > Shoes > Sneakers"@en .

If there were even more applicable categories to the product
ex:Acme123, they could be also linked by adding the additional
gr:category triples accordingly.

Regarding 2), to specify an image associated to a product, the
property "foaf:depiction" (http://xmlns.com/foaf/spec/#term_depiction)
is the one typically used in the GoodRelations vocabulary.

For example, if we had an image for our shoes ex:Acme123 stored at
<http://www.example.com/myshop/images/acme123.png>, we could link them
together as follows in the Turtle snippet below:

ex:Acme123
    a gr:ProductOrService ;
    foaf:depiction <http://www.example.com/myshop/images/acme123.png> .

I hope these quick, minimal examples can help.
Best regards,
Bene Rodriguez
--
Research Associate
E-Business and Web Science Research Group
Department of General Management and E-Business
Universitaet der Bundeswehr Munich (Germany)
phone: +49 89 6004-4218
email: bene.rodriguez at ebusiness-unibw.org
web:   http://purl.org/beroca

On Tue, May 14, 2013 at 1:17 AM, Paul Sunny <pauls at avetti.ca> wrote:
> Hello,
>
>   Am trying to integrate my online store with goodrelations and I have a
> couple of quick questions.
>
>  1) Is there any way to link more than one category to a partucular product
> other than the hierarchial structure mentioned?
>
>  2) how to upload the image using URL?
>
> I would really appreciate if you could provide me with answers.
>
> Thanks and regards
> Paul
> Avetti.com
>
>
> _______________________________________________
> goodrelations mailing list
> goodrelations at ebusiness-unibw.org
> http://ebusiness-unibw.org/cgi-bin/mailman/listinfo/goodrelations
>




More information about the goodrelations mailing list