cygri / prefix.cc

Source code to the prefix.cc website
http://prefix.cc/
The Unlicense
38 stars 10 forks source link

Better dump of all mappings, and easier to find #1

Open cygri opened 11 years ago

cygri commented 11 years ago

We already have ways of accessing all mappings through the links in the footer at http://prefix.cc/popular/all , but there are some problems with that:

cygri commented 11 years ago

Anecdotal evidence has it that people look for the dump at /all.ttl. That's not a bad place for it. The page at /popular/all could then go to /all too.

There would be some logic to /all.vann.ttl too, assuming that /all.ttl would be the pure declarations.

timrdf commented 6 years ago

The RDF/XML file uses blank nodes for the prefix mappings, which makes it hard to make 5-star references back to prefix.cc.

Suggest to change what is currently provided:

bash-3.2$ rapper -i rdfxml -o turtle http://prefix.cc/popular/all.file.vann | head -25
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix vann: <http://purl.org/vocab/vann/> .

<http://prefix.cc/popular/all.file.vann>
    a foaf:Document ;
    foaf:topic [
        vann:preferredNamespacePrefix "rdf" ;
        vann:preferredNamespaceUri "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ;
        a owl:Ontology
    ], [
        vann:preferredNamespacePrefix "owl" ;
        vann:preferredNamespaceUri "http://www.w3.org/2002/07/owl#" ;
        a owl:Ontology
    ],

to similar to the following to provide meaningful cool IRIs such as:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix vann: <http://purl.org/vocab/vann/> .

<http://prefix.cc/popular/all.file.vann>
    a foaf:Document ;
    foaf:topic <http://prefix.cc/rdf>, <http://prefix.cc/owl> .

    <http://prefix.cc/rdf>
        vann:preferredNamespacePrefix "rdf" ;
        vann:preferredNamespaceUri "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ;
        a owl:Ontology .

    <http://prefix.cc/owl>
        vann:preferredNamespacePrefix "owl" ;
        vann:preferredNamespaceUri "http://www.w3.org/2002/07/owl#" ;
        a owl:Ontology .
timrdf commented 6 years ago

Is there reason to hide the namespaces within a literal? The following could be nicer:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix vann: <http://purl.org/vocab/vann/> .

<http://prefix.cc/popular/all.file.vann>
    a foaf:Document ;
    foaf:topic <http://prefix.cc/rdf>, <http://prefix.cc/owl> .

    <http://prefix.cc/rdf>
        vann:preferredNamespacePrefix "rdf" ;
        prov:specializationOf <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ;
        a owl:Ontology .

    <http://prefix.cc/owl>
        vann:preferredNamespacePrefix "owl" ;
        prov:specializationOf <http://www.w3.org/2002/07/owl#> ;
        a owl:Ontology .