Last active
November 27, 2015 21:46
-
-
Save blokhin/8b5cb2ea1f0fcfc101d2 to your computer and use it in GitHub Desktop.
Semantic Web Technologies on an Example of Family Trees
This file contains hidden or 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
| import rdflib | |
| from RDFClosure import DeductiveClosure, OWLRL_Extension | |
| g = rdflib.Graph() | |
| g.parse("tsar_family.ttl", format="turtle") | |
| DeductiveClosure(OWLRL_Extension).expand(g) | |
| print g.serialize(format="turtle") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment