Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cygri opened this issue Mar 4, 2013 · 3 comments
Open

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

cygri opened this issue Mar 4, 2013 · 3 comments
Labels

Comments

@cygri
Copy link
Owner

cygri commented Mar 4, 2013

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
Copy link
Owner Author

cygri commented Aug 14, 2013

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
Copy link

timrdf commented Dec 2, 2017

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
Copy link

timrdf commented Dec 2, 2017

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants