sssom-py
sssom-py copied to clipboard
New method "crosswalk"
This method takes as an input
- 1 or more SSSOM tables
- one or more crosswalk relations (skos:exactMatch, skos:broadMatch)
- a "--hops" option that defines how many times we want to hop (default 1)
and returns a derived mapping set that contains the following crosswalk rules:
exact: owl:sameAs, owl:equivalentClass, skos:exactMatch broad: rdfs:subClassOf, skos:broadMatch narrow: sssom:superClassOf, skos:narrowMatch x: any mapping property.
- exact - exact -> exact
- exact - x -> x (x can be any property)
- x - exact -> x
- narrow - narrow -> narrow
- broad - broad -> broad
If this works, we need to
- [ ] document this as part of the SSSOM spec
just a FYI, no action required, but this is degenerate boomer
This decreases the priority for now, you are right. If we can feed all the mappings as owl:equivalentClass or rdfs:subClassOf it does not matter wether they cross through 3rd party terms.. it could still work. Could be a bit more work for boomer/curators, but yeah, maybe not top priority now for the project. Thanks @cmungall