Skip to content

Commit

Permalink
Fix validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
magbak committed Nov 18, 2024
1 parent 8904916 commit a8775d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/templates/src/subtypes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const OWL_RATIONAL: &str = "http://www.w3.org/2002/07/owl#rational";
pub fn is_literal_subtype(s: &NamedNode, t: &NamedNode) -> bool {
if !ptype_is_possibly_literal(s) || !ptype_is_possibly_literal(t) {
false
} else if s == t {
true
} else if t.as_ref() == rdfs::LITERAL {
true
} else if t.as_str() == OWL_REAL {
Expand Down Expand Up @@ -97,3 +99,4 @@ fn xsd_int_subtype(s: &NamedNode) -> bool {
fn xsd_short_subtype(s: &NamedNode) -> bool {
matches!(s.as_ref(), xsd::BYTE)
}

0 comments on commit a8775d0

Please sign in to comment.