diff --git a/examples/MetaNetX/README.md b/examples/MetaNetX/README.md index d103803f9..0b5dbd829 100644 --- a/examples/MetaNetX/README.md +++ b/examples/MetaNetX/README.md @@ -1,12 +1,9 @@ -Examples extracted from rdf.metantex.org +`prefix.ttl` was automatically generated as follow: -```js -var examplesh2= -document.querySelectorAll('#mnx_view ol > li'); -for (var i=0;i< examplesh2.length;i++) { - let q=examplesh2[i].getElementsByTagName('button')[0].attributes['onclick'].nodeValue; - console.log("prefix ex: \nprefix sh: \nprefix rdf: \nprefix rdfs:\nprefix schema: \nex:"+(i+1)+"\na sh:SPARQLSelectExecutable, sh:SPARQLExecutable ;\n sh:prefixes _:sparql_examples_prefixes, _:metanetx_sparql_examples_prefixes ;\n schema:target ;\n rdfs:comment '''"+examplesh2[i].firstChild.data.trim()+"''' ; \n sh:select '''"+q.substring(40, q.length -1).trim().replaceAll("\\n","\n")+"'''."); -} +```{bash} +git clone https://github.com/MetaNetX/MNXtools.git MNXtools +cd MNXtools/perl +perl -e 'use lib "."; use Prefix; print Prefix->new()->get_prefix_ontology()' > prefix.ttl ```