Skip to content

Commit

Permalink
extending log:rawType with log:BlankNode, log:LabeledBlankNode, log:S…
Browse files Browse the repository at this point in the history
…kolemIRI and log:ForSome types and dropping log:isBlank (obs from Patrick Hochstenbach)
  • Loading branch information
josd committed Feb 1, 2023
1 parent d8356e5 commit 402736f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
1 change: 1 addition & 0 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EYE release

[v2.6.1] extending log:rawType with log:BlankNode, log:LabeledBlankNode, log:SkolemIRI and log:ForSome types and dropping log:isBlank (obs from Patrick Hochstenbach)
[v2.6.0] adding log:isBlank built-in for SPARQL emulation
[v2.5.0] generating fewer implications for --blogic
[v2.4.0] refactoring --blogic and removing --no-erase
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.0
2.6.1
1 change: 0 additions & 1 deletion eye-builtins.n3
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ log:implies a e:Builtin.
log:includes a e:Builtin.
log:includesNotBind a e:Builtin.
log:inferences a e:Builtin.
log:isBlank a e:Builtin.
log:langlit a e:Builtin.
log:localN3String a e:Builtin.
log:localName a e:Builtin.
Expand Down
30 changes: 17 additions & 13 deletions eye.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
:- use_module(library(semweb/turtle)).
:- catch(use_module(library(http/http_open)), _, true).

version_info('EYE v2.6.0 josd').
version_info('EYE v2.6.1 josd').

license_info('MIT License

Expand Down Expand Up @@ -6731,18 +6731,6 @@
; B = C
).

'<http://www.w3.org/2000/10/swap/log#isBlank>'(A, B) :-
when(
( nonvar(A)
),
( findvars(A, C, beta),
( C \= []
-> B = true
; B = false
)
)
).

'<http://www.w3.org/2000/10/swap/log#langlit>'([literal(A, type('<http://www.w3.org/2001/XMLSchema#string>')), literal(B, type('<http://www.w3.org/2001/XMLSchema#string>'))], literal(A, lang(B))).

'<http://www.w3.org/2000/10/swap/log#localN3String>'(A, literal(B, type('<http://www.w3.org/2001/XMLSchema#string>'))) :-
Expand Down Expand Up @@ -11447,6 +11435,22 @@
B \= ':',
C >= 2,
!.
raw_type(A, '<http://www.w3.org/2000/10/swap/log#BlankNode>') :-
nb_getval(var_ns, B),
sub_atom(A, 1, _, _, B),
sub_atom(A, _, 4, _, '#bn_'),
!.
raw_type(A, '<http://www.w3.org/2000/10/swap/log#LabeledBlankNode>') :-
nb_getval(var_ns, B),
sub_atom(A, 1, _, _, B),
sub_atom(A, _, 5, _, '#e_b_'),
!.
raw_type(A, '<http://www.w3.org/2000/10/swap/log#SkolemIRI>') :-
sub_atom(A, _, 19, _, '/.well-known/genid/'),
!.
raw_type(A, '<http://www.w3.org/2000/10/swap/log#ForSome>') :-
sub_atom(A, 1, _, _, 'http://eyereasoner.github.io/var#qe_'),
!.
raw_type(_, '<http://www.w3.org/2000/10/swap/log#Other>').

getnumber(rdiv(A, B), C) :-
Expand Down
Binary file modified eye.zip
Binary file not shown.

0 comments on commit 402736f

Please sign in to comment.