Skip to content
8 changes: 4 additions & 4 deletions .github/deployment/sparql/duplicate_definition.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
# Severity:
# Error

PREFIX cco: <http://www.ontologyrepository.com/CommonCoreOntologies/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT DISTINCT ?element ?definition ?error
WHERE {
?element cco:definition ?definition .
?element2 cco:definition ?definition .
?element skos:definition ?definition .
?element2 skos:definition ?definition .
FILTER (?element != ?element2)
FILTER (!isBlank(?element))
BIND (concat("WARNING: The following ontology elements have the same cco:definition ", str(?element), " and ", str(?element2)) AS ?error)
}
}
4 changes: 2 additions & 2 deletions .github/deployment/sparql/min_1_eng_def.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX cco: <http://www.ontologyrepository.com/CommonCoreOntologies/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT DISTINCT ?resource ?label ?error
WHERE {
VALUES ?type {owl:Class owl:ObjectProperty}
?resource a ?type .
OPTIONAL {
?resource cco:definition ?englishDefinition .
?resource skos:definition ?englishDefinition .
FILTER (langMatches(lang(?englishDefinition), "en"))
}
FILTER(!bound(?englishDefinition))
Expand Down
344 changes: 166 additions & 178 deletions src/cco-extensions/ModalRelationOntology.ttl

Large diffs are not rendered by default.

26,881 changes: 13,515 additions & 13,366 deletions src/cco-merged/CommonCoreOntologiesMerged.ttl
Copy link
Copy Markdown
Contributor

@johnbeve johnbeve Nov 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Back of the envelope calculations (not including MRO):

  • There are 43 skos:scopeNote annotations in the merged file and 62 across the modules (something is amiss)
  • There are 1569 skos:definition annotations in both the merged and across all modules, respectively (but see next section for reason to think merged should be 1568)
  • There are 74 skos:example annotations in the merged but 73 across the modules (this is OK if remove the annotation declaration for example_of_usage identified below)
  • There are 351 skos:altLabel annotations in the merged but 356 across the modules

The following should be removed:

FYSA In the merged and modal relations files:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johnbeve Good catch. I think this file is regenerated anyway. I'll do that in next commit.

Copy link
Copy Markdown
Contributor

@johnbeve johnbeve Nov 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neilotte Didn't realize you could see, I've been updating this comment so there might be a bit more to check (done with it now!)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johnbeve I've updated the merged file, but I believe the dev team is automating generation of the modal file so I won't touch it further here (@mark-jensen or @cameronmore are welcome to though, here or on a subsequent MR).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mark-jensen @johnbeve Updated two sparql queries that used cco:definition as well.

Large diffs are not rendered by default.

318 changes: 160 additions & 158 deletions src/cco-modules/AgentOntology.ttl

Large diffs are not rendered by default.

1,289 changes: 645 additions & 644 deletions src/cco-modules/ArtifactOntology.ttl

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/cco-modules/CurrencyUnitOntology.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

@base <http://www.ontologyrepository.com/CommonCoreOntologies/Mid/CurrencyUnitOntology> .
Expand All @@ -26,8 +27,8 @@
### http://www.ontologyrepository.com/CommonCoreOntologies/CurrencyUnit
cco:CurrencyUnit rdf:type owl:Class ;
rdfs:subClassOf cco:MeasurementUnit ;
cco:definition "A Measurement Unit used in measurements of financial values."@en ;
cco:example_of_usage "U.S. Dollar, Euro, Yuan, South African Rand" ;
skos:definition "A Measurement Unit used in measurements of financial values."@en ;
skos:example "U.S. Dollar, Euro, Yuan, South African Rand" ;
cco:is_curated_in_ontology "http://www.ontologyrepository.com/CommonCoreOntologies/Mid/CurrencyUnitOntology"^^xsd:anyURI ;
rdfs:label "Measurement Unit of Currency"@en .

Expand Down
815 changes: 408 additions & 407 deletions src/cco-modules/EventOntology.ttl

Large diffs are not rendered by default.

179 changes: 71 additions & 108 deletions src/cco-modules/ExtendedRelationOntology.ttl

Large diffs are not rendered by default.

195 changes: 98 additions & 97 deletions src/cco-modules/FacilityOntology.ttl

Large diffs are not rendered by default.

147 changes: 74 additions & 73 deletions src/cco-modules/GeospatialOntology.ttl

Large diffs are not rendered by default.

457 changes: 229 additions & 228 deletions src/cco-modules/InformationEntityOntology.ttl

Large diffs are not rendered by default.

264 changes: 132 additions & 132 deletions src/cco-modules/QualityOntology.ttl

Large diffs are not rendered by default.

121 changes: 61 additions & 60 deletions src/cco-modules/TimeOntology.ttl

Large diffs are not rendered by default.

345 changes: 173 additions & 172 deletions src/cco-modules/UnitsOfMeasureOntology.ttl

Large diffs are not rendered by default.