dateTime

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

dateTime

Oluwande Adewoyin
Hello everyone, pls am having issues with the following SWRL rules:

  Person(?p), integer[>= 18 , <= 65](?age), hasAge(?p, ?age) -> hasDriverAge(?p, true)
Person(?p)  bornOnDate(?p,?date) date(?date,?year,?month,?day,?timezone)->bornInYear(?p,?year)


for the first Rule, the error message is "unexpected ["
for the second Rule, the error message is "invalidSWRL atom Predicate"

Pls i need explanation on these
thanks


--
ADEWOYIN OLUWANDE O.

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|

Re: dateTime

Lorenz Buehmann


Hello everyone, pls am having issues with the following SWRL rules:

  Person(?p), integer[>= 18 , <= 65](?age), hasAge(?p, ?age) -> hasDriverAge(?p, true)

integer[>= 18 , <= 65](?age) -> what is that? that's clearly illegal syntax, you can't use OWL 2 facets here. swrlb:lessThan resp. swrlb:greaterThan can be used for comparison.



Person(?p)  bornOnDate(?p,?date) date(?date,?year,?month,?day,?timezone)->bornInYear(?p,?year)
where are the commas to separate the atoms in the body of the rule?


for the first Rule, the error message is "unexpected ["
for the second Rule, the error message is "invalidSWRL atom Predicate"

Pls i need explanation on these
thanks


--
ADEWOYIN OLUWANDE O.


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|

Re: dateTime

Oluwande Adewoyin
the commas were not accepted. errors were constantly been flagged.

On Tue, Sep 11, 2018 at 7:55 AM Lorenz B. <[hidden email]> wrote:


Hello everyone, pls am having issues with the following SWRL rules:

  Person(?p), integer[>= 18 , <= 65](?age), hasAge(?p, ?age) -> hasDriverAge(?p, true)

integer[>= 18 , <= 65](?age) -> what is that? that's clearly illegal syntax, you can't use OWL 2 facets here. swrlb:lessThan resp. swrlb:greaterThan can be used for comparison.



Person(?p)  bornOnDate(?p,?date) date(?date,?year,?month,?day,?timezone)->bornInYear(?p,?year)
where are the commas to separate the atoms in the body of the rule?


for the first Rule, the error message is "unexpected ["
for the second Rule, the error message is "invalidSWRL atom Predicate"

Pls i need explanation on these
thanks


--
ADEWOYIN OLUWANDE O.


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center
_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


--
ADEWOYIN OLUWANDE O.

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|

Re: dateTime

samsontu
Which SWRL editor are you using? If you are using the Protege Rules view, then ‘,' is the separator. If you are using SWRLTab, then ‘^’ is the separator.

With best regards,
Samson


On Sep 11, 2018, at 1:37 PM, Oluwande Adewoyin <[hidden email]> wrote:

the commas were not accepted. errors were constantly been flagged.

On Tue, Sep 11, 2018 at 7:55 AM Lorenz B. <[hidden email]> wrote:


Hello everyone, pls am having issues with the following SWRL rules:

  Person(?p), integer[>= 18 , <= 65](?age), hasAge(?p, ?age) -> hasDriverAge(?p, true)

integer[>= 18 , <= 65](?age) -> what is that? that's clearly illegal syntax, you can't use OWL 2 facets here. swrlb:lessThan resp. swrlb:greaterThan can be used for comparison.



Person(?p)  bornOnDate(?p,?date) date(?date,?year,?month,?day,?timezone)->bornInYear(?p,?year)
where are the commas to separate the atoms in the body of the rule?


for the first Rule, the error message is "unexpected ["
for the second Rule, the error message is "invalidSWRL atom Predicate"

Pls i need explanation on these
thanks


--
ADEWOYIN OLUWANDE O.


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center
_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


--
ADEWOYIN OLUWANDE O.
_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user