hitontology / ontology

The Health IT Ontology.
https://hitontology.eu/
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

citations with more than one softwareproduct #40

Closed KonradHoeffner closed 4 years ago

KonradHoeffner commented 4 years ago

Forbidden due to cardinality rules. Related to #39.

KonradHoeffner commented 4 years ago
SELECT ?cit COUNT(?swp)
{
 ?cit a [rdfs:subClassOf hito:Citation].
 OPTIONAL
 {
  ?swp a hito:SoftwareProduct; ?p ?cit.
 }
}
GROUP BY ?cit
HAVING (COUNT(?swp)>1)
ORDER BY DESC(COUNT(?swp))
cit callret-1
http://hitontology.eu/ontology/Reporting 4
http://hitontology.eu/ontology/completeTestResults 2
http://hitontology.eu/ontology/medicationSelectionFromMenuInWichMedicationFromTheWardStockOrThePharmacyIsShown 2
http://hitontology.eu/ontology/TopDiseasesReport 2
http://hitontology.eu/ontology/automaticAndPaperlessOperations 2
http://hitontology.eu/ontology/patientRegistration 2
http://hitontology.eu/ontology/possibilityToContinuePrescribingWhileSafetyAlert 2
http://hitontology.eu/ontology/bookingOfExaminations 2
http://hitontology.eu/ontology/safetyAlertsInCaseOfAllergies 2
http://hitontology.eu/ontology/readBarCodeLabel 2
http://hitontology.eu/ontology/EvaluationsReport 2
http://hitontology.eu/ontology/InjurySurveillanceSystemRegistrationReport 2
http://hitontology.eu/ontology/safetyAlertsForAcceptedMedicationAreSeenByPharmacistsWhoCanContactPhysiciansOrNurses 2
http://hitontology.eu/ontology/safetyAlertsInCaseOfOverdosing 2
http://hitontology.eu/ontology/StockManagement 2
http://hitontology.eu/ontology/medicationControlBasedOnNationalDrugDatabase 2
http://hitontology.eu/ontology/safetyAlertsInCaseOfDrug-drugInteractions 2
http://hitontology.eu/ontology/safetyAlertsInRealTime 2
http://hitontology.eu/ontology/standardizedPrescriptionsAndMedicationProtocols 2
http://hitontology.eu/ontology/speechRecognition 2
KonradHoeffner commented 4 years ago

This occurs due to the URI generation out of the label in CSV2RDF. A randomly generated ID of a large length would have a very high probability of solving the problem but make the URIs completely unreadable, which I don't like for Semantic Web resources. Thus, I will first prefix the citation URIs generated in CSV2RDF with the name of the software product and the type of the citation.

For example, hito:Reporting could become split into:

KonradHoeffner commented 4 years ago

Result after CSV2RDF prefixing

cit callret-1
http://hitontology.eu/ontology/completeTestResults 2
http://hitontology.eu/ontology/medicationSelectionFromMenuInWichMedicationFromTheWardStockOrThePharmacyIsShown 2
http://hitontology.eu/ontology/automaticAndPaperlessOperations 2
http://hitontology.eu/ontology/patientRegistration 2
http://hitontology.eu/ontology/possibilityToContinuePrescribingWhileSafetyAlert 2
http://hitontology.eu/ontology/bookingOfExaminations 2
http://hitontology.eu/ontology/safetyAlertsInCaseOfAllergies 2
http://hitontology.eu/ontology/readBarCodeLabel 2
http://hitontology.eu/ontology/safetyAlertsForAcceptedMedicationAreSeenByPharmacistsWhoCanContactPhysiciansOrNurses 2
http://hitontology.eu/ontology/safetyAlertsInCaseOfOverdosing 2
http://hitontology.eu/ontology/medicationControlBasedOnNationalDrugDatabase 2
http://hitontology.eu/ontology/safetyAlertsInCaseOfDrug-drugInteractions 2
http://hitontology.eu/ontology/safetyAlertsInRealTime 2
http://hitontology.eu/ontology/standardizedPrescriptionsAndMedicationProtocols 2
http://hitontology.eu/ontology/speechRecognition 2

As they don't have any prefix, they seem to be manually specified. Manually prefix products.ttl and check again afterwards.

KonradHoeffner commented 4 years ago

The problem is that the citations are defined in hito.ttl and reused, which is not what is intended now.