namespace

0 views
Skip to first unread message

laurent pierre

unread,
May 31, 2013, 10:24:10 AM5/31/13
to sta...@clarkparsia.com
Dear All,

I've just installed the new release (1.2.2) and had one of my bugs resolved.  Thanks !

In the release notes I read :

* ADDED: ln, log, atan, asin, acos, sinh, cosh, tang, toDegrees & toRadians to
Stardog built-in function library.  These are in the tag:stardog:api:functions: 
namespace.

It is not clear for me by which uri I will have to prefix any of these functions in a swrl rule.

Cheers

Laurent

Mike Grove

unread,
May 31, 2013, 10:26:22 AM5/31/13
to stardog
On Fri, May 31, 2013 at 10:24 AM, laurent pierre <lolost...@gmail.com> wrote:
Dear All,

I've just installed the new release (1.2.2) and had one of my bugs resolved.  Thanks !

Great!
 

In the release notes I read :

* ADDED: ln, log, atan, asin, acos, sinh, cosh, tang, toDegrees & toRadians to
Stardog built-in function library.  These are in the tag:stardog:api:functions: 
namespace.

It is not clear for me by which uri I will have to prefix any of these functions in a swrl rule.

Here's a simple query that demonstrates the use:

prefix sb: <tag:stardog:api:functions:>

select ?v where {
    bind(sb:log(10) as ?v)
}

Cheers,

Mike


Cheers
 
Laurent

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
 
 

Laurent Pierre

unread,
May 31, 2013, 10:29:37 AM5/31/13
to sta...@clarkparsia.com
Ok, so I can use it in a turtle file as well as a standard prefix ?

Mike Grove

unread,
May 31, 2013, 10:41:53 AM5/31/13
to stardog
On Fri, May 31, 2013 at 10:29 AM, Laurent Pierre <lolost...@gmail.com> wrote:
Ok, so I can use it in a turtle file as well as a standard prefix ?

Yes.

Cheers,

Mike
 

Le 31 mai 2013 à 16:26, Mike Grove <mi...@clarkparsia.com> a écrit :


prefix sb: <tag:stardog:api:functions:>

Laurent Pierre

unread,
Jun 3, 2013, 6:36:30 AM6/3/13
to sta...@clarkparsia.com
Dear All,

I tried to use the log function but I couldn't.  I wrote a small example with one swrl rule :

bar(?x, ?v), <tag:stardog:api:functions:log>(?r, ?v) 
-> 
foo(?x, ?r)


but I didn't get the expected result for the foo property with the query :

./stardog query  "testMiscDB;reasoning=QL" 
SELECT  ?x ?val 
WHERE { ?x :foo ?val  }". 


 I join the turtle file.

Cheers 

Laurent

log.ttl

Héctor Pérez-Urbina

unread,
Jun 3, 2013, 3:47:59 PM6/3/13
to stardog
Hi Laurent,

Currently we don't support Stardog built-ins in SWRL rules. This seems to a be a feature worth having, though. We'll talk about it to decide whether to support it and by when.

Thanks.





--
Best,
Héctor

Laurent Pierre

unread,
Jun 4, 2013, 4:05:56 AM6/4/13
to sta...@clarkparsia.com
Hi Hector,

Is incorporation of Stardog built-ins in SWRL rules a hard job to do, I mean more than standard built-ins ?

Cheers 

Laurent

Evren Sirin

unread,
Jun 4, 2013, 11:13:41 AM6/4/13
to Stardog
No, it is not very hard. We'll try to include this in the next release.

Best,
Evren 
Reply all
Reply to author
Forward
0 new messages