snikproject / ontology

Public SNIK Ontology. An ontology of information management in hospitals.
https://snikproject.github.io/ontology/
Other
10 stars 1 forks source link

meta:Feature #364

Open KonradHoeffner opened 4 years ago

KonradHoeffner commented 4 years ago

There are 307 instances of meta:Feature but this class is not in our diagram, where is it coming from?

The meta:typicalFeature triples were already included in the initial GitHub commit from 2016-08-09, https://raw.githubusercontent.com/IMISE/snik-ontology/a0aef41ed23292c7b25313badf8b5e5b29cb92b7/bb.rdf.

The instances aren't well described however:

SELECT DISTINCT(?p)
{
 ?x a meta:Feature.
 ?x ?p ?o.
}
p
--
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2000/01/rdf-schema#label
SELECT DISTINCT(?p) ?type
{
 ?x a meta:Feature.
 ?o ?p ?x.
 ?o a ?type.
}
p | type
-- | --
http://open.vocab.org/terms/defines | http://www.w3.org/2002/07/owl#Ontology
http://www.w3.org/2002/07/owl#annotatedTarget | http://www.w3.org/2002/07/owl#Axiom
http://www.snik.eu/ontology/meta/typicalFeature | http://www.w3.org/2002/07/owl#Class
KonradHoeffner commented 4 years ago
SELECT COUNT DISTINCT ?c ?f
{
 ?c meta:typicalFeature ?f
}

Result: 174

meta:typicalFeature is not defined at all. Investigate its usage.

SELECT DISTINCT ?c ?f
{
 ?c meta:typicalFeature ?f
}
c f
http://www.snik.eu/ontology/bb/PatientAdministrationSystem http://www.snik.eu/ontology/bb/FeatureAdministrateTheMasterPatientIndex
http://www.snik.eu/ontology/bb/PatientAdministrationSystem http://www.snik.eu/ontology/bb/FeatureAdmitPatientsToTheWard
http://www.snik.eu/ontology/bb/DataWarehouseSystem http://www.snik.eu/ontology/bb/FeatureAnalyzeData
http://www.snik.eu/ontology/bb/PictureArchivingAndCommunicationSystem http://www.snik.eu/ontology/bb/FeatureArchivePictures
http://www.snik.eu/ontology/bb/EnterpriseResourcePlanningSystem http://www.snik.eu/ontology/bb/FeatureAssignDoctorsToPatientsOrRooms
http://www.snik.eu/ontology/bb/NursingManagementAndDocumentationSystem http://www.snik.eu/ontology/bb/FeatureAssignDoctorsToPatientsOrRooms
http://www.snik.eu/ontology/bb/LaboratoryInformationSystem http://www.snik.eu/ontology/bb/FeatureAssignOrderAndBloodSamplesToDevices
... ....
SELECT DISTINCT ?s ?sup COUNT(?c) as ?COUNT
FROM <http://www.snik.eu/ontology>
{
  ?c meta:typicalFeature ?f.
  ?c meta:subTopClass ?s.
  ?c rdfs:subClassOf ?sup.
}
s sup COUNT
http://www.snik.eu/ontology/meta/EntityType http://www.snik.eu/ontology/bb/ComputerBasedApplicationComponent 148
http://www.snik.eu/ontology/meta/EntityType http://www.snik.eu/ontology/bb/IntegrationTechnology 2
http://www.snik.eu/ontology/meta/EntityType http://www.snik.eu/ontology/meta/ComputerBasedApplicationComponent 22
http://www.snik.eu/ontology/meta/EntityType http://www.snik.eu/ontology/bb/Middleware 2
SELECT DISTINCT ?s ?sup COUNT(DISTINCT(?c)) as ?COUNT
FROM <http://www.snik.eu/ontology>
{
  ?c meta:typicalFeature ?f.
  ?c meta:subTopClass ?s.
  ?c rdfs:subClassOf ?sup.
}
s sup COUNT
http://www.snik.eu/ontology/meta/EntityType http://www.snik.eu/ontology/bb/IntegrationTechnology 1
http://www.snik.eu/ontology/meta/EntityType http://www.snik.eu/ontology/bb/Middleware 1
http://www.snik.eu/ontology/meta/EntityType http://www.snik.eu/ontology/meta/ComputerBasedApplicationComponent 1
http://www.snik.eu/ontology/meta/EntityType http://www.snik.eu/ontology/bb/ComputerBasedApplicationComponent 13

So we can nearly define the domain as meta:ComputerBasedApplicationComponent, however there are a few exceptions:

class feature superclass
http://www.snik.eu/ontology/bb/IntegrationPlatform http://www.snik.eu/ontology/bb/FeatureServiceCombination http://www.snik.eu/ontology/bb/IntegrationTechnology
http://www.snik.eu/ontology/bb/IntegrationPlatform http://www.snik.eu/ontology/bb/FeatureServiceOrchestration http://www.snik.eu/ontology/bb/IntegrationTechnology
http://www.snik.eu/ontology/bb/CommunicationServer http://www.snik.eu/ontology/bb/FeatureMessageQueuing http://www.snik.eu/ontology/bb/Middleware
http://www.snik.eu/ontology/bb/CommunicationServer http://www.snik.eu/ontology/bb/FeatureMulticasting http://www.snik.eu/ontology/bb/Middleware

Middleware is a subclass of IntegrationTechnology. Both of them don't have a superclass of ComputerBasedApplicationComponent. We could change property of those 4 triples to isAssociatedWith.

KonradHoeffner commented 4 years ago

:feature a owl:ObjectProperty ; rdfs:domain :ComputerBasedApplicationComponent ; rdfs:label "feature"@en ; rdfs:range :Feature .



Added in commit 65e13e1ae7b5c135d9759056b214c1fa1f3781bb.
KonradHoeffner commented 4 years ago

The easiest way is to make bb:IntegrationTechnology a ComputerBasedApplicationComponent.

@FranziskaJahn: Is it correct to make that change?

SPARQL
WITH <http://www.snik.eu/ontology/bb>
DELETE DATA {bb:IntegrationTechnology rdfs:subClassOf bb:InformationManagementEntityType.}
INSERT DATA {bb:IntegrationTechnology rdfs:subClassOf meta:ComputerBasedApplicationComponent.}
KonradHoeffner commented 4 years ago

@FranziskaJahn : Bitte Grafik vom Metamodell um "Feature" erweitern.

KonradHoeffner commented 2 years ago

@BirgitSNIK: Kannst du mir bitte mir die Quelldatei schicken, dann kümmere ich mich selbst darum. Welches Programm braucht man dafür?