Click on any circle to zoom in or out. Code by mbostock https://gist.github.com/mbostock/7607535
Metadata WordCount Fingerprints -- Star Plots in D3, based on: https://github.com/kevinschaul/d3-star-plot
Metadata Fingerprints -- Star Plots in D3, based on: https://github.com/kevinschaul/d3-star-plot
charper:~$ rapper -i rdfxml -o turtle models.rdf -O https://raw.githubusercontent.com/duraspace/pcdm/master/models.rdf | |
rapper: Parsing URI file:///home/charper/models.rdf with parser rdfxml | |
rapper: Serializing with serializer turtle and base URI https://raw.githubusercontent.com/duraspace/pcdm/master/models.rdf | |
@base <https://raw.githubusercontent.com/duraspace/pcdm/master/models.rdf> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix dcterms: <http://purl.org/dc/terms/> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
@prefix ore: <http://www.openarchives.org/ore/terms/> . | |
@prefix owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
Click on any circle to zoom in or out. Code by mbostock https://gist.github.com/mbostock/7607535
Click on any circle to zoom in or out. Code by mbostock https://gist.github.com/mbostock/7607535
Since @mjg shamed me into posting a gist of this, here's a simple example of something gross.
Query dbpedia endpoint for most highly used properties, get the jq response format, grab the counts and values, format them usefully in sed, filter out the top 50 in awk, and print to the screen:
curl -H 'Accept: application/sparql-results+json' -d 'query=SELECT+?p+(COUNT+(?p)+AS+?pCount)+WHERE+{+?s+?p+?o+}+GROUP+BY+?p+ORDER+BY+DESC(?pCount)' http://dbpedia.org/sparql? | jq '.results.bindings[] | [.p.value, "|", .pCount.value] | add' | sed 's/"//g' | awk ' BEGIN { FS = "|" ; OFS = "|" } { if ($2 >= 50) { print $0 } } ' | less