Last active
August 29, 2015 14:02
-
-
Save AlexanderWillner/950400b8a42806627d7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./reasoning-example.sh | |
Default RDF dataset (extract): | |
============================== | |
<http://intercloud.example.org#knows> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#SymmetricProperty> . | |
<http://intercloud.example.org#alice> <http://intercloud.example.org#knows> <http://intercloud.example.org#bob> . | |
Query on default RDF dataset: | |
============================= | |
Command: sparql --query=reasoning-example.sparql --data=reasoning-example.ttl | |
Output: | |
-------------------- | |
| subject | object | | |
==================== | |
| :alice | :bob | | |
-------------------- | |
Inferencing over RDF dataset... | |
=============================== | |
Command: java jena.RuleMap /etc/owl-fb.rules reasoning-example.ttl > reasoning-example-extended.ttl | |
Query on extended RDF dataset: | |
============================== | |
Command: sparql --query=reasoning-example.sparql --data=reasoning-example-extended.ttl | |
Output: | |
-------------------- | |
| subject | object | | |
==================== | |
| :alice | :bob | | |
| :bob | :alice | | |
-------------------- | |
Extended RDF dataset (extract): | |
=============================== | |
<http://intercloud.example.org#knows> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#SymmetricProperty> . | |
<http://intercloud.example.org#alice> <http://intercloud.example.org#knows> <http://intercloud.example.org#bob> . | |
<http://intercloud.example.org#bob> <http://intercloud.example.org#knows> <http://intercloud.example.org#alice> . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment