3

I'm using MarkLogic as an RDF server and LUBM datasets to test some of my access control policy. I have loaded some .owl files (created by LUBM generator) in MarkLogic. After that, when I explore database, it looks like this:

screenshot

The problem is that when I try to query, it always returns "Your query returned an empty sequence". Here is some example query of LUBM data: http://swat.cse.lehigh.edu/projects/lubm/queries-sparql.txt

2
  • 1
    Some of your queries aren't syntactically correct. E.g., in the first one, you need < and > around http://www.Department0.University0.edu/GraduateCourse0. May 25, 2016 at 20:48
  • 1
    Without seeing the actual data that you have, we can't really help figure out why your queries aren't working. What does a very simple query like select * where { ?s ?p ?o } return? May 25, 2016 at 20:49

1 Answer 1

3

I suspect that the problem is that you've loaded the .owl files directly as XML, but not gotten them into the triples index. Given your OWL files, try using MLCP to load them.

Once you've done that, take a look in Query Console again. You should see documents with URIs like /triplestore/353b9c6d0ce5910f.xml. These will hold your triples in the format that MarkLogic expects to work with internally. (Don't worry, you can still export them in other formats.)

Next, check that you've got the triples index turned on for the database you're using. You can turn it on using the Admin UI (port 8001) or the Management API.

If all went well, you should be able to run a simple test using your browser: http://localhost:8060/v1/graphs/things. Replace the port number with that of an app server that uses your content database. If all went well, you should be shown some "things" represented by triples. Then try your queries again.

1
  • Thank you so much! It turns out i forgot -input_file_type RDF when using MLCP at the first time so it doesn't load .owl files correctly. Everything works perfectly now. May 27, 2016 at 6:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.