The count function returns always 1996

16 views
Skip to first unread message

Daniel Hernández

unread,
Apr 27, 2015, 6:37:27 AM4/27/15
to 4store-...@googlegroups.com
Hello,

I loaded a file with several triples. However,
I always get 1996 when counting the triples.
I pasted the commands below. Why I got 1996?

$ 4s-backend-setup psv
4store[41277]: backend-setup.c:185 erased files for KB psv
4store[41277]: backend-setup.c:310 created RDF metadata for KB psv
$ 4s-backend psv
$ 4s-import -v psv --format ntriples psv.nt
removing old data
Reading <file:///home/daniel/data/psv.nt>
Pass 1, processed 2622 triples (2622)
Pass 2, processed 2622 triples, 56679 triples/s
Updating index
Index update took 0.090791 seconds
Imported 2622 triples, average 19052 triples/s
$ 4s-query -f text psv 'SELECT (count(*) as ?count) where { ?s ?p ?o }'
?count
1996

Thanks,
Daniel

Daniel Hernández

unread,
Apr 27, 2015, 6:37:27 AM4/27/15
to 4store-...@googlegroups.com

swh

unread,
Apr 27, 2015, 6:40:56 AM4/27/15
to 4store-...@googlegroups.com
That is the soft limit feature in action.


It's designed to make it (relatively) safe to expose untrusted users to the SPARQL interface. I can be turned off in the config file, or on a per-request basis.
Reply all
Reply to author
Forward
0 new messages