zazuko/ld-didok

Assign more specific classes from schema.org

ktk opened this issue · 1 comments

ktk commented

We currently only use schema:Place, there are a few other candidates that are more specific:

This is also related with #16, as the categories might indicate what resource should be which class. IMHO we should only introduce it to objects that are pretty generic to map.

ktk commented

Adrian Gschwend (Zazuko): I wonder if it just complains about schema:openingHours or if it really ignores it: https://search.google.com/structured-data/testing-tool?hl=de#url=https%3A%2F%2Flod.opentransportdata.swiss%2Fplace%2F8504300%2Fgeo-mcdonalds-b866

Adrian Gschwend (Zazuko): definition: https://schema.org/openingHours

Victor Felder (Zazuko): Link is in German, but in English it says "(The property http://lod.opentransportdata.swiss/vocab/floor is not recognized by Google for an object of type Place.)", which seems consistent with the definition?

Adrian Gschwend (Zazuko): IMO it should do that or does anyone disagree? It's part of LocalBusiness which is a Place

Victor Felder (Zazuko): Isn't it the other way around? LocalBusiness being a Place, LocalBusiness inherits all there is on Place

Adrian Gschwend (Zazuko): so schema says: https://prefix.zazuko.com/schema:LocalBusiness

Adrian Gschwend (Zazuko): ah shit that could be right because it does not use rdfs:domain and rdfs:range

Victor Felder (Zazuko): The way I understand it being: all LocalBusinesses are Places, not all Places are LocalBusinesses

Adrian Gschwend (Zazuko): then it would simply be infered

Adrian Gschwend (Zazuko): yeah you might be right

Adrian Gschwend (Zazuko): that's annoying

Adrian Gschwend (Zazuko): problem is that I now it's a POI but I cannot infer in the pipeline if it's a LocalBusiness or not

Adrian Gschwend (Zazuko): ah I could

Adrian Gschwend (Zazuko): then I would have to say if it has openinghours it's a LocalBusiness

Adrian Gschwend (Zazuko): then it would work

Victor Felder (Zazuko): Couldn't you say that all https://lod.opentransportdata.swiss/place/subcategory/8 are LocalBusiness?

Adrian Gschwend (Zazuko): interesting I never thought that way around in schema.org

Adrian Gschwend (Zazuko): true as well

Adrian Gschwend (Zazuko): good point

Adrian Gschwend (Zazuko): ok need to do an issue in my pipeline, thanks :)