Skip to content

Commit

Permalink
Fix translation of ontology version
Browse files Browse the repository at this point in the history
  • Loading branch information
ckindermann committed Sep 6, 2024
1 parent 41dfe5a commit dbbc3d5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ofn_2_ldtab/axiom_translation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1073,14 +1073,15 @@ pub fn translate_annotation_assertion_axiom(v: &Value) -> Value {

pub fn translate_ontology(v: &Value) -> Value {
let iri = &v[1];
let viri = &v[2];

let triple = json!({
"assertion":"1",
"retraction":"0",
"graph":"graph",
"subject":"ontology",
"predicate":"hasID",
"object":iri,
"subject":iri,
"predicate":"owl:versionIRI",
"object":viri,
"datatype":"_IRI",
"annotation":""
});
Expand All @@ -1094,8 +1095,8 @@ pub fn translate_doc_iri(v: &Value) -> Value {
"assertion":"1",
"retraction":"0",
"graph":"graph",
"subject":"ontology",
"predicate":"hasIRI",
"subject":"ontology",//TODO
"predicate":"owl:versionIRI",
"object":iri,
"datatype":"_IRI",
"annotation":""
Expand Down

0 comments on commit dbbc3d5

Please sign in to comment.