Back to The Blog

RDFox Beginner Cheat Sheet

Part Two: Legislate Technologies tips and tricks

Part Two: Legislate Technologies tips and tricks

Photo by Mark Autumns on Unsplash

In our last article, we spoke to Vaishali Raghvani, a knowledge engineer from Legislate Technologies, on her experience of getting started with RDFox. Since then, Legislate has kindly shared their ‘cheat sheet’ which stores their tips and tricks for getting to grips with RDFox quickly…

We believe this cheat sheet will be useful for other RDFox beginners, so are sharing it with our community.

Do let us know what you think of this cheat sheet, or if you have anything to add to it from your own experiences…

To read the Q&A with Legislate Technologies Knowledge Engineer, click here…




endpoint startdstore create myDataStore type par-complex-nn
active myDataStoreprefix : <>set output out
set query.answer-format text/ data.ttl
import rules.dlog


RDFox modes:

  1. Sandbox

2. Shell

3. Daemon



  1. Default graph atoms in rules are surrounded by square brackets - [], and have commas separating the subject, predicate, and object.
    Thus, we will write an atom like so:

[?subject, ?predicate, ?object]


[?person, :hasNationality, ?nationality]

2. The WHERE clause in SPARQL queries should be surrounded by a pair of curly brackets - {}



[?person, :hasDOB, "Unknown"] :- [?person, a, :Person], NOT EXISTS ?dob IN ([?person, :hasDOB, ?dob]) .


[?person, :hasFewestPets, true]
[?person, a, :PetOwner],
 [?otherPerson, a, :PetOwner],
 [?otherPerson, :hasPetCount, ?otherPetCount],
 BIND MIN(?otherPetCount) AS ?minPetCount
[?person, :hasPetCount, ?minPetCount] .





We hope this cheat sheet is helpful for our RDFox beginners. To try RDFox yourself, you can request a 30 day free trial or a demonstration. For more information on RDFox check out our website and blog.

About Legislate Technologies

Legislate is an early stage legal technology startup which allows large landlords and small businesses to easily create, sign and manage contracts that are prudent and fair. Legislate’s platform is built on a patent-pending knowledge graph which streamlines the contracting process and aggregates contract statistics to quickly unlock valuable insights. Legislate’s team marries technical and legal expertise to create a painless contracting experience for its users.


The Team and Resources

The team behind Oxford Semantic Technologies started working on RDFox in 2011 at the Computer Science Department of the University of Oxford with the conviction that flexible and high-performance reasoning was a possibility for data-intensive applications without jeopardising the correctness of the results. RDFox is the first market-ready knowledge graph designed from the ground up with reasoning in mind. Oxford Semantic Technologies is a spin-out of the University of Oxford and is backed by leading investors including Samsung Venture Investment Corporation (SVIC), Oxford Sciences Innovation (OSI) and Oxford University’s investment arm (OUI). The author is proud to be a member of this team.

From the blog

High performance knowledge graph and semantic reasoning engine.