Each user can upload a csv file for visualizing any set of sources.
The first line of the csv file should be the following:
Source,Category,Triples,URIs,Literals,Blank_Nodes,Degree
Then, each line represents one source.
For each source the user should at least give the name, the category and the number of triples
and can optionally fill the other features.
The categories are the following:
Feature | SPARQL Query |
---|---|
# of Triples | SELECT count(*) as ?numberOfTriples from <Source> where { ?s ?p ?o} |
# of URIs | SELECT (count (distinct ?s) as ?numberOfURIs) from <Source> where{ { ?s ?p ?o } UNION { ?o ?p ?s } FILTER(isURI(?s)) } |
# of Literals | SELECT (count (distinct ?o) as ?numberOfLiterals) from <Source> { ?s ?p ?o FILTER(isLiteral(?o)) } |
# of Blank Nodes | SELECT (count (distinct ?s) as ?numberOfBNodes) from <Source> { { ?s ?p ?o } UNION { ?o ?p ?s } FILTER(isBlank(?s)) } |
Degree of URIs | SELECT xsd:double(count(?incomingProperties)+count(?outgoingProperties))/xsd:double(count (distinct ?node)) as ?degreeOfURIs
from <Source> where{ {?node ?outgoingProperties ?o } UNION {?o1 ?incomingProperties ?node} . FILTER(isURI(?node) )} |