lib/rdf/blazegraph/rest_client.rb
def fast_range_count(subject: nil, predicate: nil, object: nil, 
                         context: nil, exact: true)
      st_query = access_path_query(subject, predicate, object, context)
      resp = execute("?ESTCARD#{st_query}&exact=#{exact}")
      read_xml_response(resp, :rangeCount).to_i
    end
##
# Returns a count of the number of triples in the datastore.
#
# We use the `exact` option, to ensure that counts are exact regardless
# of sharding and other configuration conditions.
#
# Errors are thrown if a bnode is given for any of the terms or if a 
# literal is given in the subject or predicate place.
#
# @param [Boolean] exact  whether to insist on an exact range count, or 
#   allow approximations e.g. across multiple shards; default: `true`
#
# @return [Integer] the count of triples matching the query
#
# @raise [RequestError] if the request is invalid or the server throws an 
#   error
Returns a count of the number of triples in the datastore.
We use the `exact` option, to ensure that counts are exact regardless
of sharding and other configuration conditions.

Errors are thrown if a bnode is given for any of the terms or if a
literal is given in the subject or predicate place.
Returns a count of the number of triples in the datastore . We use the ` exact ` option to ensure that counts are exact regardless of sharding and other configuration conditions . Errors are thrown if a bnode is given for any of the terms or if a literal is given in the subject or predicate place .
def fast_range_count(subject: nil, predicate: nil, object: nil, 
                         context: nil, exact: true)
      st_query = access_path_query(subject, predicate, object, context)
      resp = execute("?ESTCARD#{st_query}&exact=#{exact}")
      read_xml_response(resp, :rangeCount).to_i
    end
def fast_range_count ( subject : nil , predicate : nil , object : nil , context : nil , exact : true ) st_query = access_path_query ( subject , predicate , object , context ) resp = execute ( "?ESTCARD#{st_query}&exact=#{exact}" ) read_xml_response ( resp , :rangeCount ) . to_i end
Returns a count of the number of triples in the datastore.
Returns a count of the number of triples in the datastore .
the count of triples matching the query
the count of triples matching the query
Integer
[RequestError] if the request is invalid or the server throws an error
[ RequestError ] if the request is invalid or the server throws an error
subject
predicate
object
context
exact
exact whether to insist on an exact range count, or allow approximations e.g. across multiple shards; default: `true`
exact whether to insist on an exact range count or allow approximations e . g . across multiple shards ; default : ` true `