Post
Topic
Board Altcoin Discussion
Re: The Serious Altcoin Discussion/News Thread - No FUD, Shilling or Trolling.
by
gjhiggins
on 29/09/2014, 18:13:39 UTC
A dynamic version of the chart is available ...

... to anyone to render for themselves.

The data is retrieved from DOACC via SPARQL queries (posed of a Fuseki-mediated localhost endpoint). A javascript package (sgvizler) handles the posting of the query and generates the charts directly from the SPARQL results, all straightforwardly expressed in HTML. This is the incantation for the above chart with the verbatim SPARQL query highlighted in green ...

Quote


  

    

Altcoin launches since Jan 2013


    
      data-sgvizler-endpoint="http://localhost:3030/doacc/query"
      data-sgvizler-endpoint_output="json"
      data-sgvizler-query="PREFIX doacc:
      SELECT DISTINCT ?incept (COUNT(?node) as ?coins)
      {
        ?node doacc:incept ?incept .
        FILTER(?incept > '2012-12'^^) .
        FILTER(?incept < '2014-10'^^)
        } GROUP BY ?incept ORDER BY ?incept
"
      data-sgvizler-chart-options="title=Altcoin launches since Jan 2013|legend.position=none"
      data-sgvizler-chart="google.visualization.LineChart"
      style="width:720px; height:365px; border:1px solid black; display: inline-block;">

  



It just needs a change to the SPARQL query and a call to google.visualization.PieChart (marked in red) to get the frequency data for the current month for protection schemes, plotted as a pie chart:

Quote


  

    

Current proportions of coin distribution and ledger protection schemes


    
      data-sgvizler-endpoint="http://localhost:3030/doacc/query"
      data-sgvizler-endpoint_output="json"
      data-sgvizler-query="PREFIX doacc:
      PREFIX skos:
      SELECT DISTINCT ?label (COUNT(?node) as ?coins)
      {
        ?node doacc:protection-scheme ?ps .
        ?ps skos:prefLabel ?label
        } GROUP BY ?label ORDER BY ?coins
"
      data-sgvizler-chart-options="title=Protection schemes"
      data-sgvizler-chart="google.visualization.PieChart"
      style="width:520px; height:365px; border:1px solid black; display: inline-block;">

  



For a graph showing the distribution schemes, just replace doacc:protection-scheme with doacc:distribution-scheme, change the title and that's it, job done.



Now, that's what I call Web 3.0.


Cheers,

Graham