Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions databus/dbpedia/ontology/dbo-snapshots/dbo-snapshots.dl
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ Egyptologist ⊑ Person
Election ≡ Q40231
Election ⊑ SocietalEvent
ElectionDiagram ⊑ ⊤
ElectricalSubstation ⊑ Infrastucture
ElectricalSubstation ⊑ Infrastructure
Embryology ⊑ AnatomicalStructure
Employer ≡ Q3053337
Employer ⊑ Agent
Expand Down Expand Up @@ -522,7 +522,6 @@ Image ⊑ Document
InformationAppliance ≡ Q1067263
InformationAppliance ⊑ Device
Infrastructure ⊑ ArchitecturalStructure
Infrastucture ⊑ ArchitecturalStructure
InlineHockeyLeague ⊑ SportsLeague
Insect ≡ Q1390
Insect ⊑ Animal
Expand Down Expand Up @@ -2909,7 +2908,6 @@ wasDerivedFrom(Ideology, OntologyClass:Ideology)
wasDerivedFrom(Image, OntologyClass:Image)
wasDerivedFrom(InformationAppliance, OntologyClass:InformationAppliance)
wasDerivedFrom(Infrastructure, OntologyClass:Infrastructure)
wasDerivedFrom(Infrastucture, OntologyClass:Infrastucture)
wasDerivedFrom(InlineHockeyLeague, OntologyClass:InlineHockeyLeague)
wasDerivedFrom(Insect, OntologyClass:Insect)
wasDerivedFrom(Instrument, OntologyClass:Instrument)
Expand Down
14 changes: 7 additions & 7 deletions databus/dbpedia/ontology/dbo-snapshots/dbo-snapshots.nt
Original file line number Diff line number Diff line change
Expand Up @@ -4145,7 +4145,7 @@
<http://dbpedia.org/ontology/ElectricalSubstation> <http://www.w3.org/2000/01/rdf-schema#label> "electrical substation"@en .
<http://dbpedia.org/ontology/ElectricalSubstation> <http://www.w3.org/2000/01/rdf-schema#label> "poste \u00E9lectrique"@fr .
<http://dbpedia.org/ontology/ElectricalSubstation> <http://www.w3.org/2000/01/rdf-schema#label> "transformatorhuisje"@nl .
<http://dbpedia.org/ontology/ElectricalSubstation> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://dbpedia.org/ontology/Infrastucture> .
<http://dbpedia.org/ontology/ElectricalSubstation> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://dbpedia.org/ontology/Infrastructure> .
<http://dbpedia.org/ontology/ElectricalSubstation> <http://www.w3.org/ns/prov#wasDerivedFrom> <http://mappings.dbpedia.org/index.php/OntologyClass:ElectricalSubstation> .
<http://dbpedia.org/ontology/Embryology> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
<http://dbpedia.org/ontology/Embryology> <http://www.w3.org/2000/01/rdf-schema#label> "Embryologie"@de .
Expand Down Expand Up @@ -5792,12 +5792,12 @@
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastruktur"@da .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://dbpedia.org/ontology/ArchitecturalStructure> .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/ns/prov#wasDerivedFrom> <http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure> .
<http://dbpedia.org/ontology/Infrastucture> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
<http://dbpedia.org/ontology/Infrastucture> <http://www.w3.org/2000/01/rdf-schema#label> "\u0628\u0646\u06CC\u0627\u062F\u06CC \u0688\u06BE\u0627\u0646\u0686\u06C1"@ur .
<http://dbpedia.org/ontology/Infrastucture> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@en .
<http://dbpedia.org/ontology/Infrastucture> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@fr .
<http://dbpedia.org/ontology/Infrastucture> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://dbpedia.org/ontology/ArchitecturalStructure> .
<http://dbpedia.org/ontology/Infrastucture> <http://www.w3.org/ns/prov#wasDerivedFrom> <http://mappings.dbpedia.org/index.php/OntologyClass:Infrastucture> .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "\u0628\u0646\u06CC\u0627\u062F\u06CC \u0688\u06BE\u0627\u0646\u0686\u06C1"@ur .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@en .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@fr .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://dbpedia.org/ontology/ArchitecturalStructure> .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/ns/prov#wasDerivedFrom> <http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure> .
Comment on lines +5795 to +5800
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Confirm all duplicate triples for dbo:Infrastructure in the .nt file
rg -n 'dbpedia\.org/ontology/Infrastructure' databus/dbpedia/ontology/dbo-snapshots/dbo-snapshots.nt \
  | sort -t':' -k2

Repository: dbpedia/ontology-tracker

Length of output: 6727


Remove 6 duplicate triples for dbo:Infrastructure — deduplication missed multiple lines.

The addition of dbo:Infrastructure introduced six exact duplicates of already-present triples:

Lines Duplicate of Triple content
5795 5784 rdf:type owl:Class
5796 5787 rdfs:label "...‌"@ur (Urdu)
5797 5789 rdfs:label "infrastructure"@en
5798 5790 rdfs:label "infrastructure"@fr
5799 5793 rdfs:subClassOf dbo:ArchitecturalStructure
5800 5794 prov:wasDerivedFrom <...OntologyClass:Infrastructure>

This occurred because the misspelled dbo:Infrastucture block was replaced via URI substitution, appending all triples under the correct URI without checking for pre-existing ones. The PR notes deduplication was applied to dbo-snapshots.dl, but this .nt file was skipped.

🗑️ Proposed fix — remove the six duplicate triples
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "Infrastruktur"@de .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "Υποδομή"@el .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "\u0628\u0646\u06CC\u0627\u062F\u06CC \u0688\u06BE\u0627\u0646\u0686\u06C1"@ur .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "インフラストラクチャー"@ja .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@en .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@fr .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@nl .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastruktur"@da .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://dbpedia.org/ontology/ArchitecturalStructure> .
 <http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/ns/prov#wasDerivedFrom> <http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure> .
-<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
-<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "\u0628\u0646\u06CC\u0627\u062F\u06CC \u0688\u06BE\u0627\u0646\u0686\u06C1"@ur .
-<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@en .
-<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@fr .
-<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://dbpedia.org/ontology/ArchitecturalStructure> .
-<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/ns/prov#wasDerivedFrom> <http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure> .
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "\u0628\u0646\u06CC\u0627\u062F\u06CC \u0688\u06BE\u0627\u0646\u0686\u06C1"@ur .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@en .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#label> "infrastructure"@fr .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://dbpedia.org/ontology/ArchitecturalStructure> .
<http://dbpedia.org/ontology/Infrastructure> <http://www.w3.org/ns/prov#wasDerivedFrom> <http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure> .
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@databus/dbpedia/ontology/dbo-snapshots/dbo-snapshots.nt` around lines 5795 -
5800, Remove the six duplicate N-Triples for
<http://dbpedia.org/ontology/Infrastructure> (the duplicates for rdf:type
owl:Class, rdfs:label "@ur", rdfs:label "infrastructure"@en, rdfs:label
"infrastructure"@fr, rdfs:subClassOf
<http://dbpedia.org/ontology/ArchitecturalStructure>, and prov:wasDerivedFrom
<http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure>) that were
appended by the URI substitution; delete those exact triples from
dbo-snapshots.nt and re-run or add the deduplication step for dbo-snapshots.nt
so future URI-replacements (fixing dbo:Infrastucture → dbo:Infrastructure) do
not create duplicate triples.

<http://dbpedia.org/ontology/InlineHockeyLeague> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
<http://dbpedia.org/ontology/InlineHockeyLeague> <http://www.w3.org/2000/01/rdf-schema#comment> "\u06A9\u06BE\u06CC\u0644\u0648\u06BA \u06A9\u06CC \u0679\u06CC\u0645\u0648\u06BA \u06A9\u0627 \u06AF\u0631\u0648\u067E \u062C\u0648 \u0627\u0646 \u0644\u0627\u0626\u0646 \u06C1\u0627\u06A9\u06CC \u0645\u06CC\u06BA \u0627\u06CC\u06A9 \u062F\u0648\u0633\u0631\u06D2 \u0633\u06D2 \u0645\u0642\u0627\u0628\u0644\u06C1 \u06A9\u0631\u062A\u06D2 \u06C1\u06CC\u06BA\u06D4"@ur .
<http://dbpedia.org/ontology/InlineHockeyLeague> <http://www.w3.org/2000/01/rdf-schema#comment> "group of sports teams that compete against each other in Inline Hockey."@en .
Expand Down
6 changes: 3 additions & 3 deletions databus/dbpedia/ontology/dbo-snapshots/dbo-snapshots.owl
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@
<rdfs:label xml:lang="fr">tunnel de voie navigable</rdfs:label><rdfs:label xml:lang="en">waterway tunnel</rdfs:label><rdfs:label xml:lang="ur">آبی گزرگاہ کی سرنگ</rdfs:label><rdfs:label xml:lang="de">Kanaltunnel</rdfs:label><rdfs:label xml:lang="ga">tollán uiscebhealaigh</rdfs:label><rdfs:label xml:lang="nl">kanaaltunnel</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/RouteOfTransportation"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:WaterwayTunnel"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/Ocean">
<rdfs:label xml:lang="fr">Océan</rdfs:label><rdfs:label xml:lang="en">Ocean</rdfs:label><rdfs:label xml:lang="ur">سمندر</rdfs:label><rdfs:label xml:lang="el">Ωκεανός</rdfs:label><rdfs:label xml:lang="pt">oceano</rdfs:label><rdfs:label xml:lang="de">Ozean</rdfs:label><rdfs:label xml:lang="ja">大洋</rdfs:label><rdfs:label xml:lang="ga">aigéan</rdfs:label><rdfs:label xml:lang="nl">oceaan</rdfs:label><rdfs:comment xml:lang="ur">نمکین پانی کا ایک جسم جو سیارے کے ہائیڈروسفیئر کا زیادہ تر حصہ بناتا ہے۔</rdfs:comment><rdfs:comment xml:lang="en">A body of saline water that composes much of a planet's hydrosphere.</rdfs:comment><rdfs:comment xml:lang="el">Μάζα αλμυρού νερού που αποτελεί σημαντικό μέρος της υδρόσφαιρας ενός πλανήτη.</rdfs:comment><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/BodyOfWater"/><owl:equivalentClass rdf:resource="http://www.wikidata.org/entity/Q9430"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:Ocean"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/Infrastucture">
<rdfs:label xml:lang="en">infrastructure</rdfs:label><rdfs:label xml:lang="fr">infrastructure</rdfs:label><rdfs:label xml:lang="ur">بنیادی ڈھانچہ</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/ArchitecturalStructure"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:Infrastucture"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/Infrastructure">
<rdfs:label xml:lang="en">infrastructure</rdfs:label><rdfs:label xml:lang="fr">infrastructure</rdfs:label><rdfs:label xml:lang="ur">بنیادی ڈھانچہ</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/ArchitecturalStructure"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure"/>
Comment on lines +364 to +365
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Remove duplicated dbo:Infrastructure class block/triples.

http://dbpedia.org/ontology/Infrastructure is declared twice in this file with overlapping axioms (rdfs:subClassOf and prov:wasDerivedFrom). Even if semantically mergeable, this creates redundant snapshot data and unnecessary churn. Prefer a single canonical class declaration here.

Also applies to: 957-958

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@databus/dbpedia/ontology/dbo-snapshots/dbo-snapshots.owl` around lines 364 -
365, The file contains duplicate owl:Class blocks for the class
http://dbpedia.org/ontology/Infrastructure (dbo:Infrastructure) with overlapping
axioms (rdfs:subClassOf and prov:wasDerivedFrom); remove the redundant duplicate
block and keep a single canonical declaration for dbo:Infrastructure that
includes all required axioms (rdfs:label entries, rdfs:subClassOf pointing to
http://dbpedia.org/ontology/ArchitecturalStructure, and prov:wasDerivedFrom
pointing to the mapping URI), and do the same for the other duplicate occurrence
referenced in the comment (lines around 957-958) so there is exactly one
owl:Class rdf:about="http://dbpedia.org/ontology/Infrastructure" in the
snapshot.

</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/Airport">
<rdfs:label xml:lang="es">aeropuerto</rdfs:label><rdfs:label xml:lang="fr">aéroport</rdfs:label><rdfs:label xml:lang="en">airport</rdfs:label><rdfs:label xml:lang="ur">ہوائی اڈہ</rdfs:label><rdfs:label xml:lang="ko">공항</rdfs:label><rdfs:label xml:lang="el">αεροδρόμιο</rdfs:label><rdfs:label xml:lang="ru">аэропорт</rdfs:label><rdfs:label xml:lang="pt">aeroporto</rdfs:label><rdfs:label xml:lang="da">lufthavn</rdfs:label><rdfs:label xml:lang="pl">lotnisko</rdfs:label><rdfs:label xml:lang="de">Flughafen</rdfs:label><rdfs:label xml:lang="gl">aeroporto</rdfs:label><rdfs:label xml:lang="ja">空港</rdfs:label><rdfs:label xml:lang="ga">aerfort</rdfs:label><rdfs:label xml:lang="zh">機場</rdfs:label><rdfs:label xml:lang="nl">luchthaven</rdfs:label><rdfs:label xml:lang="it">aeroporto</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/Infrastructure"/><owl:equivalentClass rdf:resource="http://schema.org/Airport"/><owl:equivalentClass rdf:resource="http://www.wikidata.org/entity/Q1248784"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:Airport"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/Boxer">
Expand Down Expand Up @@ -953,7 +953,7 @@
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/PoliticalFunction">
<rdfs:label xml:lang="fr">fonction politique</rdfs:label><rdfs:label xml:lang="en">political function</rdfs:label><rdfs:label xml:lang="ur">سیاسی تقریب</rdfs:label><rdfs:label xml:lang="de">politische Funktion</rdfs:label><rdfs:label xml:lang="nl">politieke functie</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/PersonFunction"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:PoliticalFunction"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/ElectricalSubstation">
<rdfs:label xml:lang="en">electrical substation</rdfs:label><rdfs:label xml:lang="fr">poste électrique</rdfs:label><rdfs:label xml:lang="nl">transformatorhuisje</rdfs:label><rdfs:label xml:lang="ur">برقی ذیلی مرکز</rdfs:label><rdfs:comment xml:lang="ur">برقی ذیلی مرکز وولٹیج کو زیادہ سے کم، یا برعکس میں تبدیل کرتے ہیں۔</rdfs:comment><rdfs:comment xml:lang="en">Substations transform voltage from high to low, or the reverse.</rdfs:comment><rdfs:comment xml:lang="fr">poste de transformation abaisseur ou élévateur de tension.</rdfs:comment><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/Infrastucture"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:ElectricalSubstation"/>
<rdfs:label xml:lang="en">electrical substation</rdfs:label><rdfs:label xml:lang="fr">poste électrique</rdfs:label><rdfs:label xml:lang="nl">transformatorhuisje</rdfs:label><rdfs:label xml:lang="ur">برقی ذیلی مرکز</rdfs:label><rdfs:comment xml:lang="ur">برقی ذیلی مرکز وولٹیج کو زیادہ سے کم، یا برعکس میں تبدیل کرتے ہیں۔</rdfs:comment><rdfs:comment xml:lang="en">Substations transform voltage from high to low, or the reverse.</rdfs:comment><rdfs:comment xml:lang="fr">poste de transformation abaisseur ou élévateur de tension.</rdfs:comment><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/Infrastructure"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:ElectricalSubstation"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/Infrastructure">
<rdfs:label xml:lang="fr">infrastructure</rdfs:label><rdfs:label xml:lang="en">infrastructure</rdfs:label><rdfs:label xml:lang="ur">بنیادی ڈھانچہ</rdfs:label><rdfs:label xml:lang="el">Υποδομή</rdfs:label><rdfs:label xml:lang="da">infrastruktur</rdfs:label><rdfs:label xml:lang="de">Infrastruktur</rdfs:label><rdfs:label xml:lang="ja">インフラストラクチャー</rdfs:label><rdfs:label xml:lang="nl">infrastructure</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/ArchitecturalStructure"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/Atoll">
Expand Down
6 changes: 3 additions & 3 deletions databus/dbpedia/ontology/dbo-snapshots/dbo-snapshots.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3235,7 +3235,7 @@
a owl:Class ;
rdfs:comment "Substations transform voltage from high to low, or the reverse."@en, "poste de transformation abaisseur ou élévateur de tension."@fr, "برقی ذیلی مرکز وولٹیج کو زیادہ سے کم، یا برعکس میں تبدیل کرتے ہیں۔"@ur ;
rdfs:label "electrical substation"@en, "poste électrique"@fr, "transformatorhuisje"@nl, "برقی ذیلی مرکز"@ur ;
rdfs:subClassOf :Infrastucture ;
rdfs:subClassOf :Infrastructure ;
prov:wasDerivedFrom <http://mappings.dbpedia.org/index.php/OntologyClass:ElectricalSubstation> .

:Embryology
Expand Down Expand Up @@ -4229,11 +4229,11 @@
rdfs:label "Länge (km)"@de, "lengte (km)"@nl, "length (km)"@en, "longueur (km)"@fr, "μήκος (km)"@el, "ርዝመት (km)"@am ;
rdfs:range <http://dbpedia.org/datatype/kilometre> .

:Infrastucture
:Infrastructure
a owl:Class ;
rdfs:label "infrastructure"@en, "infrastructure"@fr, "بنیادی ڈھانچہ"@ur ;
rdfs:subClassOf :ArchitecturalStructure ;
prov:wasDerivedFrom <http://mappings.dbpedia.org/index.php/OntologyClass:Infrastucture> .
prov:wasDerivedFrom <http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure> .

:InlineHockeyLeague
a owl:Class ;
Expand Down
2 changes: 1 addition & 1 deletion ontology/ontology.owl
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ Includes concentration, extermination, transit, detention, internment, (forced)
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/PoliticalFunction">
<rdfs:label xml:lang="en">political function</rdfs:label><rdfs:label xml:lang="de">politische Funktion</rdfs:label><rdfs:label xml:lang="fr">fonction politique</rdfs:label><rdfs:label xml:lang="nl">politieke functie</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/PersonFunction"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:PoliticalFunction"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/ElectricalSubstation">
<rdfs:label xml:lang="en">electrical substation</rdfs:label><rdfs:label xml:lang="nl">transformatorhuisje</rdfs:label><rdfs:label xml:lang="de">Transformatorenstation</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/Infrastucture"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:ElectricalSubstation"/>
<rdfs:label xml:lang="en">electrical substation</rdfs:label><rdfs:label xml:lang="nl">transformatorhuisje</rdfs:label><rdfs:label xml:lang="de">Transformatorenstation</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/Infrastructure"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:ElectricalSubstation"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/Infrastructure">
<rdfs:label xml:lang="el">Υποδομή</rdfs:label><rdfs:label xml:lang="fr">infrastructure</rdfs:label><rdfs:label xml:lang="de">Infrastruktur</rdfs:label><rdfs:label xml:lang="da">infrastruktur</rdfs:label><rdfs:label xml:lang="ja">インフラストラクチャー</rdfs:label><rdfs:label xml:lang="en">infrastructure</rdfs:label><rdfs:label xml:lang="nl">infrastructure</rdfs:label><rdfs:subClassOf rdf:resource="http://dbpedia.org/ontology/ArchitecturalStructure"/><prov:wasDerivedFrom rdf:resource="http://mappings.dbpedia.org/index.php/OntologyClass:Infrastructure"/>
</owl:Class><owl:Class rdf:about="http://dbpedia.org/ontology/Atoll">
Expand Down
4 changes: 2 additions & 2 deletions ontology/ontology.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,7 @@ Includes concentration, extermination, transit, detention, internment, (forced)
:ElectricalSubstation
a owl:Class ;
rdfs:label "Transformatorenstation"@de, "electrical substation"@en, "transformatorhuisje"@nl ;
rdfs:subClassOf :Infrastucture ;
rdfs:subClassOf :Infrastructure ;
prov:wasDerivedFrom <http://mappings.dbpedia.org/index.php/OntologyClass:ElectricalSubstation> .

:Embryology
Expand Down Expand Up @@ -17395,7 +17395,7 @@ Includes concentration, extermination, transit, detention, internment, (forced)

:leadership
a rdf:Property, owl:DatatypeProperty ;
rdfs:domain :Person ;
rdfs:domain :PopulatedPlace ;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Unscoped ontology semantic change in this PR.

Line 17398 changes :leadership domain to :PopulatedPlace, which is a behavioral ontology change and not part of the typo-fix objective. Please either revert this here or split it into a separate PR with targeted validation coverage, since domain changes can impact downstream reasoning.

Suggested minimal fix in this PR
 :leadership
     a rdf:Property, owl:DatatypeProperty ;
-    rdfs:domain :PopulatedPlace ;
+    rdfs:domain :Person ;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
rdfs:domain :PopulatedPlace ;
:leadership
a rdf:Property, owl:DatatypeProperty ;
rdfs:domain :Person ;
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@ontology/ontology.ttl` at line 17398, The PR unintentionally changes the
ontology domain of :leadership to :PopulatedPlace, which is a semantic
(behavioral) change outside a typo-fix; revert the domain change for :leadership
back to its original domain (undo the edit that sets "rdfs:domain
:PopulatedPlace ;" for :leadership) in this PR, or else remove that line and
split the domain change into a separate PR that includes targeted
validation/tests for the :leadership domain change and reasoning impact. Ensure
the change is made by editing the :leadership triple (the rdfs:domain statement)
so the ontology semantics are unchanged in this branch.

rdfs:label "Führung"@de, "leadership"@en ;
rdfs:range xsd:string ;
prov:wasDerivedFrom <http://mappings.dbpedia.org/index.php/OntologyProperty:leadership> .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class RDFUnitValidate {

TestSuite ts = null;
static String defaultSchema = "ontology/dbo.tests.shapes.ttl";
static String defaultSchema = "guidelines/dbo.tests.shapes.ttl";
private static Logger L = Logger.getLogger(RDFUnitValidate.class);

public RDFUnitValidate() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class ValidateOntology {

private static Logger L = Logger.getLogger(ValidateOntology.class);

private static final File DBPEDIA_ONTOLOGY = new File("ontology/dbpedia_ontology.ttl");
private static final File DBPEDIA_ONTOLOGY = new File("ontology/ontology.ttl");
private static final String baseUri = "http://dbpedia.org/ontology/";
private static String outdir = "result";

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/dbpedia/ontologytracker/TestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class TestRunner {
public RdfReader getInputData() throws RdfReaderException {
return new RdfModelReader(
RdfReaderFactory.createFileOrResourceReader(
"ontology/dbpedia_ontology.ttl", "").read());
"ontology/ontology.ttl", "").read());
}
;

Expand Down