Re: [Semweb] Old option rdf_statistics(core(X))
Jan Wielemaker <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 10/24/2013 09:45 PM, Wouter Beek wrote:
> Hi all,
>
> In ClioPatria and SWAPP I find references to =|rdf_statistics(core(X))|=.
> Does anyone know what this statistic used to represent & what would be the
> best way to retrieve the same / a similar value using the current Semweb
> version?
It used to represent the amount of memory used by the semweb specific
allocations. Due to the changes in the memory management in RDF-DB 3.0,
this value is no longer practical to compute. There is no alternative
(and hence ClioPatria avoids displaying this value). SWAPP needs the
same change (or simply remove this unconditionally).
If you want to know memory usage, use OS tools.
Cheers --- Jan
>
> Example from ClioPatria:
> ~~~
> :- if((rdf_version(V),V<30000)).
> using_core -->
> { rdf_statistics(core(Core)) }, !,
> html([', using ', \n(human, Core), 'b memory']).
> :- endif.
> using_core -->
> [].
> ~~~
>
> Example from SWAPP:
> ~~~
> semweb_statistics(Json) :-
> rdf_statistics(triples(Total)),
> rdf_statistics(core(Core)),
> ...
> ~~~
>
> ---
> Cheers!,
> Wouter Beek.
>
> E-mail: [email protected]
> WWW: www.wouterbeek.com
> Tel.: 0647674624
> -------------- next part --------------
> HTML attachment scrubbed and removed
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>