prefix.cc icon indicating copy to clipboard operation
prefix.cc copied to clipboard

Better dump of all mappings, and easier to find

Open cygri opened this issue 13 years ago • 3 comments

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:

  • A dump for backup/restore purposes would be great, that includes stuff like addition dates, upvotes and downvotes
  • All the undefined mappings in the big dump make it large and rather useless
  • There should be a proper Turtle dump, not just RDF/XML (the .file.vann one)
  • There should be a dump that also contains secondary (non-preferred) URIs, which is important when doing things like synchronizing with a list of mappings maintained somewhere else (like LOV)
  • The dumps should have .rdf and .ttl extensions rather than .vann, otherwise we confuse stupid processors that only look at the file extension
  • The dumps must be easier to find

cygri avatar Mar 04 '13 18:03 cygri

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.

cygri avatar Aug 14 '13 21:08 cygri

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 avatar Dec 02 '17 21:12 timrdf

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 .

timrdf avatar Dec 02 '17 21:12 timrdf