Skip to content

Commit

Permalink
Changed RESOLUTIONS to subclass and sub-property off of EntityResolut…
Browse files Browse the repository at this point in the history
…ion:SameAs (copied in from SemTK).

Note mulitple super-classes of SAME_AS.
This triggers SemTK to know how to do entity resolution
  • Loading branch information
Paul Cuddihy authored and russell-d-e committed Dec 7, 2022
1 parent a8f5b23 commit a14c53d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions RACK-Ontology/OwlModels/import.yaml
Expand Up @@ -7,6 +7,7 @@ files:
- BASELINE.owl
- CONFIDENCE.owl
- DOCUMENT.owl
- EntityResolution.owl
- FILE.owl
- HARDWARE.owl
- HAZARD.owl
Expand Down
30 changes: 30 additions & 0 deletions RACK-Ontology/ontology/EntityResolution.sadl
@@ -0,0 +1,30 @@
uri "http://research.ge.com/semtk/entityResolution" alias entityResolution.


SameAs is a top-level class,
described by target with a single value of type class,
described by duplicate with a single value of type class.



// -- range for examples
// THING is a class.


// -- simple example of subclassing SameAs with your own type(SAME_AS1) and range (THING)
//
// SAME_AS1 is a type of SameAs.
// target of SAME_AS1 only has values of type THING.
// duplicate of SAME_AS1 only has values of type THING.


// -- example of subclassing SameAs with your own type (SAME_AS2)
// and changing the names of the properties to 'primary' and 'secondary'
// and setting the range to THING
//
// SAME_AS2 is a type of SameAs,
// described by primary with a single value of type THING,
// described by secondary with a single value of type THING.
//
// primary is a type of target.
// secondary is a type of duplicate.
9 changes: 8 additions & 1 deletion RACK-Ontology/ontology/RESOLUTIONS.sadl
Expand Up @@ -17,7 +17,14 @@

uri "http://arcos.rack/RESOLUTIONS" alias Rs.
import "http://arcos.rack/PROV-S".
import "http://research.ge.com/semtk/EntityResolution".


SAME_AS (note "Used to create curation relationships between two nodes. When two THINGs are connected via the SAME_AS relationship it means that the THINGs are actually describing the same. SAME_AS relationships will be collapsed into a single THING by the resolution process.") is a type of NODE.
primary (note "The primary THING is the one which will remain after the merge processes any conflicts will be resolved by using the primary's value, for example the resulting identifier will be the identifier from the primary") describes SAME_AS with a single value of type THING.
secondary (note "the secondary THINGs are the entity that will be removed during the resolution process, any attributes that do not conflict will be copied to the to the primary,") describes SAME_AS with values of type THING.
secondary (note "the secondary THINGs are the entity that will be removed during the resolution process, any attributes that do not conflict will be copied to the to the primary,") describes SAME_AS with values of type THING.

// Make SAME_AS compatible with semTK entity resolution functions.
SAME_AS is a type of EntityResolution:SameAs.
primary is a type of EntityResolution:target.
secondary is a type of EntityResolution:duplicate.

0 comments on commit a14c53d

Please sign in to comment.