Hi Everyone,

I am on of the developers at the Swiss Institute of Bioinformatics for
uniprot.org. We have for a while now a sparql endpoint in beta.
beta.sparql.uniprot.org. I am trying to generate a Service Description
for that endpoint that is as useful as possible and I have some
questions.

The first questions is about the uri of a named graph in an endpoint.
Taking the following extracted example. I have a named graph in the
endpoint.
Is it correct to use the same uri for both the concept of the named
graph and the name of the named graph?

@prefix : <http://www.w3.org/ns/sparql-service-description#>
@prefix void: <http://rdfs.org/ns/void#> .

<http://purl.uniprot.org/tissues/>
    :graph <#_3> .
    :name <http://purl.uniprot.org/tissues/> .

<#_3>
    void:classes "1" ;
    void:datadump
<ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/tissues.rdf.gz>
;
    void:distinctObjects "3560" ;
    void:distinctSubjects "1872" ;
    void:triples "6108"^^<http://www.w3.org/2001/XMLSchema#long> ;
    a :Graph ;
    :name <http://purl.uniprot.org/tissues/> .

Or should the first part be

<#_2>
    :graph <#_3> .
    :name <http://purl.uniprot.org/tissues/> .

I also have a question about declaring the entailment regime. If no
reasoning was applied, should an entailment regime be declared? if yes
which one?
If only owl:sameAs reasoning as done by OWLIM is used which entailment
regime URI should I use?

The last question is: in the attached example files, which properties
are you missing i.e. you think would generally be useful?

Regards,
Jerven

-- 
Jerven Bolleman
[email protected]
<?xml version='1.0' encoding='UTF-8'?>
<rdf:RDF xmlns="http://www.w3.org/ns/sparql-service-description#"; xmlns:dcterms="http://purl.org/dc/terms/"; xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"; xmlns:owl="http://www.w3.org/2002/07/owl#"; xmlns:skos="http://www.w3.org/2004/02/skos/core#"; xmlns:bibo="http://purl.org/ontology/bibo/"; xmlns:foaf="http://xmlns.com/foaf/0.1/"; xmlns:void="http://rdfs.org/ns/void#"; xmlns:sd="http://www.w3.org/ns/sparql-service-description#";>
<rdf:Description rdf:about="http://localhost:8088/sparql";>
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Service"/>
<defaultDataset rdf:resource="#_1"/>
<endpoint rdf:resource="http://localhost:8088/sparql"/>
<resultFormat rdf:resource="http://www.w3.org/ns/formats/SPARQL_Results_CSV"/>
<resultFormat rdf:resource="http://www.w3.org/ns/formats/SPARQL_Results_JSON"/>
<resultFormat rdf:resource="http://www.w3.org/ns/formats/N-Triples"/>
<resultFormat rdf:resource="http://www.w3.org/ns/formats/RDF_XML"/>
<resultFormat rdf:resource="http://www.w3.org/ns/formats/SPARQL_Results_TSV"/>
<resultFormat rdf:resource="http://www.w3.org/ns/formats/Turtle"/>
<resultFormat rdf:resource="http://www.w3.org/ns/formats/SPARQL_Results_XML"/>
<feature rdf:resource="http://www.w3.org/ns/sparql-service-description#UnionDefaultGraph"/>
<feature rdf:resource="http://www.w3.org/ns/sparql-service-description#BasicFederatedQuery"/>
</rdf:Description>
<rdf:Description rdf:about="#_1">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Dataset"/>
<defaultGraph rdf:resource="#_2"/>
<namedGraph rdf:resource="#_3"/>
<namedGraph rdf:resource="#_5"/>
<namedGraph rdf:resource="#_7"/>
<namedGraph rdf:resource="#_9"/>
<namedGraph rdf:resource="#_B"/>
<namedGraph rdf:resource="#_D"/>
<namedGraph rdf:resource="#_F"/>
<namedGraph rdf:resource="#_11"/>
<namedGraph rdf:resource="#_13"/>
<namedGraph rdf:resource="#_15"/>
<namedGraph rdf:resource="#_17"/>
<namedGraph rdf:resource="#_19"/>
<namedGraph rdf:resource="#_1B"/>
<namedGraph rdf:resource="#_1D"/>
</rdf:Description>
<rdf:Description rdf:about="#_2">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>61952346</void:triples>
<dcterms:title>UniProt</dcterms:title>
<dcterms:creator rdf:resource="http://www.isb-sib.ch"/>
<dcterms:creator rdf:resource="http://www.ebi.ac.uk"/>
<dcterms:creator rdf:resource="http://pir.georgetown.edu"/>
<dcterms:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date";>2013-01-09</dcterms:issued>
<dcterms:license rdf:resource="http://creativecommons.org/licenses/by-nd/3.0/rdf"/>
</rdf:Description>
<rdf:Description rdf:about="#_3">
<graph rdf:resource="#_4"/>
<name rdf:resource="http://purl.uniprot.org/journals/"/>
</rdf:Description>
<rdf:Description rdf:about="#_4">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/journals/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>30596</void:triples>
<void:classes>1</void:classes>
<void:distinctObjects>23105</void:distinctObjects>
<void:distinctSubjects>4075</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/journals.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_5">
<graph rdf:resource="#_6"/>
<name rdf:resource="http://purl.uniprot.org/enzymes/"/>
</rdf:Description>
<rdf:Description rdf:about="#_6">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/enzymes/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>52890</void:triples>
<void:classes>1</void:classes>
<void:distinctObjects>31711</void:distinctObjects>
<void:distinctSubjects>6149</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/enzymes.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_7">
<graph rdf:resource="#_8"/>
<name rdf:resource="http://purl.uniprot.org/database/"/>
</rdf:Description>
<rdf:Description rdf:about="#_8">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/database/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>1575</void:triples>
<void:classes>2</void:classes>
<void:distinctObjects>1029</void:distinctObjects>
<void:distinctSubjects>265</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/databases.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_9">
<graph rdf:resource="#_A"/>
<name rdf:resource="http://purl.uniprot.org/citations/"/>
</rdf:Description>
<rdf:Description rdf:about="#_A">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/citations/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>11473528</void:triples>
<void:classes>1</void:classes>
<void:distinctObjects>4055426</void:distinctObjects>
<void:distinctSubjects>763430</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/citations.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_B">
<graph rdf:resource="#_C"/>
<name rdf:resource="http://purl.uniprot.org/keywords/"/>
</rdf:Description>
<rdf:Description rdf:about="#_C">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/keywords/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>9714</void:triples>
<void:classes>1</void:classes>
<void:distinctObjects>6081</void:distinctObjects>
<void:distinctSubjects>1777</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/keywords.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_D">
<graph rdf:resource="#_E"/>
<name rdf:resource="http://purl.uniprot.org/tissues/"/>
</rdf:Description>
<rdf:Description rdf:about="#_E">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/tissues/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>6108</void:triples>
<void:classes>1</void:classes>
<void:distinctObjects>3560</void:distinctObjects>
<void:distinctSubjects>1872</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/tissues.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_F">
<graph rdf:resource="#_10"/>
<name rdf:resource="http://purl.uniprot.org/citationmapping/"/>
</rdf:Description>
<rdf:Description rdf:about="#_10">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/citationmapping/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>27560</void:triples>
<void:classes>2</void:classes>
<void:distinctObjects>7584</void:distinctObjects>
<void:distinctSubjects>9828</void:distinctSubjects>
</rdf:Description>
<rdf:Description rdf:about="#_11">
<graph rdf:resource="#_12"/>
<name rdf:resource="http://purl.uniprot.org/locations/"/>
</rdf:Description>
<rdf:Description rdf:about="#_12">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/locations/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>4412</void:triples>
<void:classes>4</void:classes>
<void:distinctObjects>2675</void:distinctObjects>
<void:distinctSubjects>915</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/locations.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_13">
<graph rdf:resource="#_14"/>
<name rdf:resource="http://purl.uniprot.org/taxonomy/"/>
</rdf:Description>
<rdf:Description rdf:about="#_14">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/taxonomy/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>6935784</void:triples>
<void:classes>3</void:classes>
<void:distinctObjects>2363762</void:distinctObjects>
<void:distinctSubjects>1130491</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/taxonomy.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_15">
<graph rdf:resource="#_16"/>
<name rdf:resource="http://purl.uniprot.org/uniref/"/>
</rdf:Description>
<rdf:Description rdf:about="#_16">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/uniref/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>12556626</void:triples>
<void:classes>2</void:classes>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/uniref.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_17">
<graph rdf:resource="#_18"/>
<name rdf:resource="http://purl.uniprot.org/uniprot/"/>
</rdf:Description>
<rdf:Description rdf:about="#_18">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/uniprot/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>15173324</void:triples>
<void:classes>118</void:classes>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/uniprot.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_19">
<graph rdf:resource="#_1A"/>
<name rdf:resource="http://purl.uniprot.org/pathways/"/>
</rdf:Description>
<rdf:Description rdf:about="#_1A">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/pathways/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>8937</void:triples>
<void:classes>1</void:classes>
<void:distinctObjects>3892</void:distinctObjects>
<void:distinctSubjects>3014</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/pathways.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_1B">
<graph rdf:resource="#_1C"/>
<name rdf:resource="http://purl.uniprot.org/uniparc/"/>
</rdf:Description>
<rdf:Description rdf:about="#_1C">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/uniparc/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>14603138</void:triples>
<void:classes>2</void:classes>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/uniparc.rdf.gz"/>
</rdf:Description>
<rdf:Description rdf:about="#_1D">
<graph rdf:resource="#_1E"/>
<name rdf:resource="http://purl.uniprot.org/go/"/>
</rdf:Description>
<rdf:Description rdf:about="#_1E">
<rdf:type rdf:resource="http://www.w3.org/ns/sparql-service-description#Graph"/>
<name rdf:resource="http://purl.uniprot.org/go/"/>
<void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#long";>294853</void:triples>
<void:classes>1</void:classes>
<void:distinctObjects>204803</void:distinctObjects>
<void:distinctSubjects>38621</void:distinctSubjects>
<void:datadump rdf:resource="ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/go.rdf.gz"/>
</rdf:Description>
</rdf:RDF>

Attachment: serviceDescription.ttl
Description: Binary data

Reply via email to