lib/publisher/exporters/type_exporter.rb
###
# counts the amount of resources that match the specified criteria
# e.g is of the right type and has all required properties
###
counts the amount of resources that match the specified criteria
e.g is of the right type and has all required properties
counts the amount of resources that match the specified criteria e . g is of the right type and has all required properties
def count(type, config)
    client.query(%(
                 #{sparql_prefixes}
                  SELECT (count(distinct(?resource)) as ?count)
                  FROM <#{application_graph}>
                  WHERE {
                    #{where_statements_for_type(type, config)}
                  })).first["count"].value.to_i
  end
def count ( type , config ) client . query ( %(
                 #{sparql_prefixes}
                  SELECT (count(distinct(?resource)) as ?count)
                  FROM <#{application_graph}>
                  WHERE {
                    #{where_statements_for_type(type, config)}
                  }) ) . first [ "count" ] . value . to_i end
counts the amount of resources that match the specified criteria
e.g is of the right type and has all required properties
counts the amount of resources that match the specified criteria e . g is of the right type and has all required properties
type
config