0.2.5 • Published 6 months ago

rdf2dot-wc v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

NPM Version

Web Components to visualize RDF, using eyereasoner and viz.js.

Components rdf2dot-basic and rdf2dot-default require a data attribute with RDF serialized as text/turtle.

<html>
  <body>
    <h1>RDF visualization</h1>
    <rdf2dot-default data="
        @prefix dcterms: <http://purl.org/dc/terms/> .
        @prefix wd: <http://www.wikidata.org/entity/> .
        @prefix dbo: <https://dbpedia.org/ontology/> .
        @prefix dbpedia: <http://dbpedia.org/resource/> .
        
        wd:Q12418
            dcterms:title 'Mona Lisa' ;
            dcterms:creator dbpedia:Leonardo_da_Vinci .

        wd:Q128910
            dcterms:title 'The Last Supper' ;
            dcterms:creator dbpedia:Leonardo_da_Vinci .

        dbpedia:Leonardo_da_Vinci
            dbo:birthName 'Leonardo da Vinci' ;
            dbo:birthPlace dbpedia:Republic_of_Florence .
    ">
    </rdf2dot-default>
    <script src="https://eyereasoner.github.io/eye-js/16/latest/index.js"></script>
    <script src="https://unpkg.com/@viz-js/viz@3.1.0/lib/viz-standalone.js"></script> 
    <script src="https://unpkg.com/rdf2dot-wc/rdf2dot-wc.js"></script> 
  </body>
</html>

Component rdf2dot-custom requires an additional rules attribute with Notation-3 rules.

0.2.5

6 months ago

0.2.4

6 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.2.1

7 months ago

0.2.0

7 months ago