sssom-py icon indicating copy to clipboard operation
sssom-py copied to clipboard

New method "crosswalk"

Open matentzn opened this issue 3 years ago • 2 comments

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

matentzn avatar Feb 16 '22 17:02 matentzn

just a FYI, no action required, but this is degenerate boomer

cmungall avatar Feb 16 '22 22:02 cmungall

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

matentzn avatar Feb 17 '22 05:02 matentzn