Skip to content

Inconsistent mappings across core data types #12

@mark-dropbear

Description

@mark-dropbear

I was doing some work integrating various parts of the Core Vocab specs into an application at the moment and came across what seemed to be a rather unfortunate inconsistency and I wasn't sure if this was on purpose or not and wanted to get some advice. I'm not an RDF expert so it's possible I have misunderstood something here. Like I said, I just wanted to check and / or flag this as an issue.

Example 1

Here is an example where we map dct:alternative to https://schema.org/alternateName in two (and I presume incompatible) ways depending on if we are talking about a Person or a Business. I can kind of see how it may make sense in some contexts but as far as I can tell it breaks the logic of any graph that happens to include both a person and a business each using an alternate name if you include both of these triples.

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dct: <http://purl.org/dc/terms/> .

# Core Person v2.1.1 to Schema.org v26.0
# Reference: https://raw.githubusercontent.com/SEMICeu/Semantic-Mappings/refs/heads/main/Core%20Person/Schema.org/Alignment-CorePerson-2.1.1-schemaorg.ttl
dct:alternative rdfs:subPropertyOf <https://schema.org/alternateName> .

# Core Business v2.2.0 to Schema.org v26.0
# Reference https://raw.githubusercontent.com/SEMICeu/Semantic-Mappings/refs/heads/main/Core%20Business/Schema.org/Alignment-CoreBusiness-2.2.0-schemaorg.ttl
dct:alternative owl:equivalentProperty <https://schema.org/alternateName> .

Example 2

This one I think is harder to justify the difference and I suspect it may be an error in general but we are mapping http://www.w3.org/ns/locn#adminUnitL1 here in 2 different ways (but using the same pattern where one is rdfs and the other is owl) to https://schema.org/addressCountry

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dct: <http://purl.org/dc/terms/> .

# Core Person v2.1.1 to Schema.org v26.0
# Reference: https://raw.githubusercontent.com/SEMICeu/Semantic-Mappings/refs/heads/main/Core%20Person/Schema.org/Alignment-CorePerson-2.1.1-schemaorg.ttl
<http://www.w3.org/ns/locn#adminUnitL1> rdfs:subPropertyOf <http://www.w3.org/ns/locn#adminUnitL1> .

# Core Location v2.1.0 to Schema.org v26.0
# Reference https://raw.githubusercontent.com/SEMICeu/Semantic-Mappings/refs/heads/main/Core%20Location/Schema.org/Alignment-CoreLocation-2.1.0-schemaorg.ttl
<http://www.w3.org/ns/locn#adminUnitL1> owl:equivalentProperty <https://schema.org/addressCountry> .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions