Skip to content

Commit

Permalink
Add ontology ID to horned-big output
Browse files Browse the repository at this point in the history
Some tools fail to parse the output because this is missing.
  • Loading branch information
phillord committed Jun 18, 2024
1 parent 03ef28b commit 8919f12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions horned-bin/src/bin/horned_big.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use horned_bin::write;
use horned_owl::error::HornedError;
use horned_owl::model::Build;
use horned_owl::model::MutableOntology;
use horned_owl::model::OntologyID;
use horned_owl::ontology::component_mapped::RcComponentMappedOntology;
use horned_owl::ontology::set::SetOntology;

Expand Down Expand Up @@ -48,6 +49,11 @@ pub(crate) fn matcher(matches: &ArgMatches) -> Result<(), HornedError> {
let b = Build::new_rc();
let mut o = SetOntology::new_rc();

o.insert(OntologyID {
iri: Some(b.iri("http://www.example.com/iri")),
viri: None
});

for i in 1..size + 1 {
o.declare(b.class(format!("https://www.example.com/o{}", i)));
}
Expand Down

0 comments on commit 8919f12

Please sign in to comment.