Skip to content

Commit

Permalink
Support HasSelf in RDF
Browse files Browse the repository at this point in the history
  • Loading branch information
phillord committed Mar 14, 2024
1 parent 596ef5e commit 5097260
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/io/rdf/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,16 @@ impl<'a, A: ForIRI, AA: ForIndex<A>> OntologyParser<'a, A, AA> {
self.fetch_ni_seq(bnodeid)?
)
}
},
},
[[_, Term::OWL(VOWL::HasSelf), _],//:
[_, Term::OWL(VOWL::OnProperty), pr],
[_, Term::RDF(VRDF::Type), Term::OWL(VOWL::Restriction)]] => {
ok_some!{
ClassExpression::ObjectHasSelf(
self.fetch_ope(pr, ic)?
)
}
}
[[_, Term::OWL(VOWL::IntersectionOf), Term::BNode(bnodeid)],//:
[_, Term::RDF(VRDF::Type), Term::OWL(VOWL::Class)]] => {
ok_some!{
Expand Down
2 changes: 2 additions & 0 deletions src/vocab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ pub enum OWL {
EquivalentProperty,
FunctionalProperty,
HasKey,
HasSelf,
HasValue,
Imports,
IntersectionOf,
Expand Down Expand Up @@ -224,6 +225,7 @@ lazy_meta! {
InverseOf, extend(OWL, "inverseOf");
IrreflexiveProperty, extend(OWL, "IrreflexiveProperty");
HasKey, extend(OWL, "hasKey");
HasSelf, extend(OWL, "hasSelf");
HasValue, extend(OWL, "hasValue");
MaxCardinality, extend(OWL, "maxCardinality");
MaxQualifiedCardinality, extend(OWL, "maxQualifiedCardinality");
Expand Down

0 comments on commit 5097260

Please sign in to comment.