Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #67

Open
mrtnzagustin opened this issue Apr 24, 2020 · 3 comments
Open

Question #67

mrtnzagustin opened this issue Apr 24, 2020 · 3 comments

Comments

@mrtnzagustin
Copy link

I am thinking of wrapping some of this useful library methods. I need to make some operations from node.js. Specifically i need create swr-rules on the fly, transform to ttl and insert in a graph database.
There is a way to run some methods from CLI? for example: java -jar swrlapi.jar -"my swrl rule string"
Also, is there any other project related similar to this library but written in javascript?

@martinjoconnor
Copy link
Member

I am not aware of many RDF- and OWL-related tools in JavaScript.

If you wanted to interactively invoke the SWRLAPI, you could adapt the following project:

https://github.com/protegeproject/swrlapi-example

Take a look at the main class:

https://github.com/protegeproject/swrlapi-example/blob/master/src/main/java/org/swrlapi/example/SWRLAPIExample.java

You could modify this code to take a SWRL rule or SQWRL query as a parameter and then execute it.

@mrtnzagustin
Copy link
Author

@martinjoconnor , thanks!!
do you know which method should i use to make this? :

String mySWRLString = "Class(?a) ^ hasSomething(?a, ?b) -> $ClassWithSomething(?a)";
String swrlRuleInTurtleOrOWLSyntax = methodWanted(mySWRLString);

regards!!

@martinjoconnor
Copy link
Member

I would post these more general questions to the Protege mailing list.

https://protege.stanford.edu/support.php

It's quite active and you may get a range of responses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants