Skip to content

Commit

Permalink
Fix the query to get UniProt version (the graph is now https instead …
Browse files Browse the repository at this point in the history
…of http), and add a .gitignore file to ignore the target folder and generated examples_*.ttl files
  • Loading branch information
vemonet committed May 22, 2024
1 parent cc3ae94 commit a8e175f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target/
/examples_*.ttl
15 changes: 7 additions & 8 deletions uniprot/24.ttl
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
prefix ex: <https://sparql.uniprot.org/.well-known/sparql-examples/>
prefix up: <http://purl.uniprot.org/core/>
prefix sh: <http://www.w3.org/ns/shacl#>
prefix ex: <https://sparql.uniprot.org/.well-known/sparql-examples/>
prefix up: <http://purl.uniprot.org/core/>
prefix sh: <http://www.w3.org/ns/shacl#>
prefix schema:<https://schema.org/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
ex:24
a sh:SPARQLSelectExecutable, sh:SPARQLExecutable ;
sh:prefixes _:sparql_examples_prefixes ;
schema:target <https://sparql.uniprot.org/sparql/> ;
rdfs:comment """Find the release number of the uniprot data that is currently being queried""" ;
sh:select """SELECT
?version
FROM <http://sparql.uniprot.org/.well-known/void>
sh:select """SELECT ?version
FROM <https://sparql.uniprot.org/.well-known/void>
WHERE
{
{
[] <http://purl.org/pav/version> ?version
}""" .

0 comments on commit a8e175f

Please sign in to comment.