Coscine's Public SPARQL Endpoint
Access the public knowledge graph
Coscine offers to search for public metadata records via the public SPARQL Endpoint in the Virtuoso Knowledge graph. The features are in its early stages and the access is limited to projects and resources for now, see more below
You can access the public endpoint via:
https://coscine-public-virtuoso.tools.coscine.dev/sparql
Metadata Access or Data Access?
It is possible to search for public metadata, the research data itself is not part of the public access, cause Coscine users can decide for themselves who they share their data with by using built in tools. However, the URIs found in the Coscine graph can be resolved to access a landing page or a PID record. Each of those contain a minimal set of public Metadata, for more information see the documentation page for PIDs. The PID record may contain contact information to request access to resources.
PIDs that can be resolved have the following shape.
| Type | PID Schema |
|---|---|
| Coscine-Project | https://purl.org/coscine/projects/ |
| Coscine-Resource | https://purl.org/coscine/resources/ |
What are SPARQL and RDF? How do they relate to Coscine?
Coscine connects projects, resources, and data entities via their metadata in an RDF graph. They are represented as unique IDs and are linked to other entities and concepts via properties.
For example, a project links to all of its resources via the dcat:catalog property:
In the graphical visualisation you can see the project as starting node which is in terms of RDF the "subject", the edge has the label dcat:catalog and represents the RDF "predicate", also called a "property". By sending a search query in SPARQL you can explore the hierarchical structured data in Coscine, which can be a resource , which in RDF terms is the "object".
Therefore, it is possible to find all of a project's resources by querying the graph to find all triples, where the subject has the project's ID and the property has the dcat:catalog label. This way, via the metadata, the hierarchical structure of Coscine project can be explored.
Properties may create additional connections, encoding additional knowledge about projects, resources, and data entities. For example, different projects and files may be described by the same keyword: "3D-Weaving".
In Coscine, the keyword is represented by the property http://www.w3.org/ns/dcat#keyword, so by looking for all triples where the edge has this label and the node has the value "3D-Weaving", we can find all projects, resources, and data entities using this keyword.
A complete list of the terms used in Coscine is not yet published, but a list of properties for each project, resource, and data entity is provided below. Data entities are additionally described by the metadata required by the metadata profiles of their resource. Example Queries are given below.
If you are looking for further introductions to RDF and SPARQL:
- There are user-friendly introductions to the concepts of SPARQL, e.g. https://gnome.pages.gitlab.gnome.org/tinysparql/tutorial.html?utm_source=chatgpt.com
- Large Language Models can help formulating SPARQL queries if you can formulate prompts with RDF and SPARQL terms. Example Prompt: "Please create a SPARQL Query with the subject "https://purl.org/coscine/projects/a2561455-625c-4aba-9f49-3d60641e8652" which finds all connected resources via the predicate "http://www.w3.org/ns/dcat:catalog".
Example queries:
1) Select all triples for a graph (here a a resource):SELECT * WHERE {
GRAPH <https://purl.org/coscine/resources/11b16a7b-d009-423a-86f0-0964b4bc4875> {
?s ?p ?o .
}
}
SELECT distinct ?s
WHERE {
# Restrict to subjects satisfying all required conditions
?s <http://purl.org/dc/terms/conformsTo>
<https://purl.org/coscine/ap/engmeta/> .
?s <https://purl.org/coscine/terms/resource#visibility>
<https://purl.org/coscine/terms/visibility#public> .
?s <http://purl.org/dc/terms/subject> ?subject .
# Return all triples for those subjects
?s ?p ?o .
}
ORDER BY ?s
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX orkgr: <http://orkg.org/orkg/resource/>
PREFIX orkgc: <http://orkg.org/orkg/class/>
PREFIX orkgp: <http://orkg.org/orkg/predicate/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?subject ?source ?title ?doi
WHERE {
{
# Query 1: Coscine projects and their titles
SELECT ?subject ?source ?title
WHERE {
?subject dc:subject
<http://www.dfg.de/dfg_profil/gremien/fachkollegien/liste/index.jsp?id=4.43> .
FILTER(
CONTAINS(STR(?subject), "https://purl.org/coscine/projects")
)
?subject dc:title ?title .
BIND("query1" AS ?source)
}
LIMIT 5
}
UNION
{
# Query 2: ORKG papers via federated SERVICE
SELECT ?subject ?source ?title ?doi
WHERE {
SERVICE <https://orkg.org/triplestore> {
SELECT ?subject ?title ?doi
WHERE {
?subject rdf:type orkgc:Paper ;
rdfs:label ?title ;
orkgp:P30 orkgr:R132 .
OPTIONAL {
?subject orkgp:P26 ?doi .
}
}
LIMIT 5
}
BIND("query2" AS ?source)
}
}
}
Structure of the Coscine Knowledgegraph
Coscine projects, resources, and files each have their own named graphs containing associated metadata. The relevant properties for creating a SPARQL query, comprising metadata records for projects and resources, are given in subsections below.
Projects
- Graph names conform to the following pattern:
https://purl.org/coscine/projects/<GUID>- the project GUID can be found in the project information or the Coscine project URL:
Metadata properties:
If you create a query, the project (https://purl.org/coscine/projects/| Predicate | Example Result (Object) | Explanation |
|---|---|---|
| http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/org#OrganizationalCollaboration | Defines the project as an organizational collaboration. |
| http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/prov#Entity | Defines the project as a provenance entity. |
| http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/dcat#Catalog | Defines the project as a data catalog. |
| http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2006/vcard/ns#Group | Defines the project as a group in the vCard vocabulary. |
| http://purl.org/dc/terms/created | 2026-09-01T08:45:36.700Z | Date and time when the project was created. |
| http://xmlns.com/foaf/0.1/homepage | https://hdl.handle.net/11148/7ff089aa-2db2-4101-a331-d911ebce2210 | Persistent URL for the project's PID record. |
| http://purl.org/dc/terms/creator | https://purl.org/coscine/users/f4215087-8fe2-4b28-b45d-d6c55a7e6ee1 | Coscine user ID of the creator. |
| http://purl.org/dc/terms/title | test_project | Title of the project. |
| http://www.w3.org/ns/org#organization | https://ror.org/04xfq0f34 | Identifies any organization associated with the project. |
| http://purl.org/dc/terms/description | This is a test project | Description of the project. |
| http://www.w3.org/ns/prov#wasAttributedTo | https://ror.org/04xfq0f34 | Identifies the principal organization to which the project is attributed. |
| http://purl.org/dc/terms/subject | http://www.dfg.de/dfg_profil/gremien/fachkollegien/liste/index.jsp?id=3.31 | Identifies the project's subject area using a DFG classification. |
| http://schema.org/funding | 123 | Funding information or funding identifier associated with the project. |
| http://purl.org/dc/terms/rightsHolder | pi | Identifies the rights holder of the project. |
| http://purl.org/dc/terms/alternative | resource_creation_test | Alternative title or name of the project. |
| http://www.w3.org/ns/dcat#catalog | https://purl.org/coscine/resources/4c7edbae-1370-4fa8-a880-724f724b02c3 | Links the project to one of its resources (or sub-project, if the purl indicates a project). |
| http://purl.org/dc/terms/startDate | 2026-09-01T00:00:00Z | Start date of the project. |
| http://purl.org/dc/terms/endDate | 2027-08-02T00:00:00Z | End date of the project. |
| https://purl.org/coscine/terms/project#visibility | https://purl.org/coscine/terms/visibility#public | Specifies that the project is publicly visible. (could also be #members) |
| https://purl.org/coscine/terms/project#deleted | 0 | Indicates that the project has not been deleted. |
| https://purl.org/coscine/terms/project#slug | test_project-51190530 | URL-friendly identifier (slug) of the project. |
| http://www.w3.org/2006/vcard/ns#hasMember | https://purl.org/coscine/users/f4215087-8fe2-4b28-b45d-d6c55a7e6ee1 | Identifies a project member. |
| http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/org#Membership | Defines the node as an organizational membership. (added via anonymous node) |
| http://www.w3.org/ns/org#member | https://purl.org/coscine/users/f4215087-8fe2-4b28-b45d-d6c55a7e6ee1 | Indicates user membership to the project (added via anonymous node) |
| http://www.w3.org/ns/org#role | https://purl.org/coscine/roles/be294c5e-4e42-49b3-bec4-4b15f49df9a5 | Identifies the role assigned to the project member. (added via anonymous node) |
| http://www.w3.org/ns/org#organization | https://purl.org/coscine/projects/7ff089aa-2db2-4101-a331-d911ebce2210 | Association of the user with the project (added via anonymous node) |
Resources
- Graph name pattern:
https://purl.org/coscine/resources/<GUID>- the resource GUID can be found in the rosource details or the Coscine resource URL:
Metadata properties:
If you create a query, the resource (https://purl.org/coscine/resources/| Prädikat (p) | Objekt (o) | Erklärung |
|---|---|---|
| http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/dcat#Catalog | Defines the resource as a data catalog. |
| http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/pim/space#Storage | Defines the resource as a storage space. |
| http://purl.org/dc/terms/created | 2026-09-01T14:38:59.160Z | Date and time when the resource was created. |
| http://purl.org/dc/terms/license | http://spdx.org/licenses/BSD-2-Clause | Specifies the resource's license (There is a set of allowed licenses). |
| http://xmlns.com/foaf/0.1/homepage | https://purl.org/coscine/resources/4c7edbae-1370-4fa8-a880-724f724b02c3 | Persistent URL for the resource's PID record. |
| http://purl.org/dc/terms/creator | https://purl.org/coscine/users/f4215087-8fe2-4b28-b45d-d6c55a7e6ee1 | Identifies the user who created the resource. |
| http://purl.org/dc/terms/title | Resource Name | Title of the resource. |
| http://purl.org/dc/terms/description | This is a test resource. | Description of the resource. |
| http://purl.org/dc/terms/subject | http://www.dfg.de/dfg_profil/gremien/fachkollegien/liste/index.jsp?id=3.25 | Identifies the resource's subject area using a DFG classification (2024-2028). |
| http://purl.org/dc/terms/rights | do what you will | Specifies the rights associated with the resource. |
| http://purl.org/dc/terms/alternative | Resource Name | Alternative title or name of the resource. |
| http://purl.org/dc/terms/conformsTo | https://purl.org/coscine/ap/Dataverse_Citation_Metadata/minimal/ | Specifies the user-defined metadata application profile that the resource conforms to. |
| http://www.w3.org/ns/dcat#service | https://purl.org/coscine/resourcetypes/d041a392-b926-11ef-8409-fa163e9cb811 | Identifies the service or resource type associated with the resource. |
| https://purl.org/coscine/terms/resource#visibility | https://purl.org/coscine/terms/visibility#public | Specifies that the resource is publicly visible. |
| https://purl.org/coscine/terms/resource#fixedValues | ... | Contains user-defined preset metadata values associated with the resource's metadata profile. Value omitted here for brevity. |
| https://purl.org/coscine/terms/resource#archived | 0 | Indicates that the resource has not been archived. |
| https://purl.org/coscine/terms/resource#deleted | 0 | Indicates that the resource has not been deleted. |
| http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/auth/acl#Authorization | Defines the node as an access control authorization. (added via anonymous node) |
| http://www.w3.org/ns/auth/acl#agentGroup | https://purl.org/coscine/projects/7ff089aa-2db2-4101-a331-d911ebce2210 | Identifies the project group to which the access permissions apply. (added via anonymous node) |
| http://www.w3.org/ns/auth/acl#accessTo | https://purl.org/coscine/resources/4c7edbae-1370-4fa8-a880-724f724b02c3 | Specifies the resource to which the access permissions apply. (added via anonymous node) |
| http://www.w3.org/ns/auth/acl#default | https://purl.org/coscine/resources/4c7edbae-1370-4fa8-a880-724f724b02c3 | Specifies the resource to which the authorization applies by default. (added via anonymous node) |
| http://www.w3.org/ns/auth/acl#mode | http://www.w3.org/ns/auth/acl#Read | Grants read access to the specified resource. (added via anonymous node) |
| http://www.w3.org/ns/auth/acl#mode | http://www.w3.org/ns/auth/acl#Write | Grants write access to the specified resource. (added via anonymous node) |
Files
-
Graph name pattern:
https://purl.org/coscine/resources/<GUID>/<...path>@type=metadata&version<version>- The resource GUID is the same as above
- <... path> represents the path to the file relative to the resource on Coscine
is a version tag, based on the creation datetime of the metadata version - For example, in a Coscine resource you have a folder called "Folder1", and inside that folder a file "File1". Than the graph name could be something like that "https://purl.org/coscine/resources/aa4ed9c1-695b-4427-aee9-b9b912e2912d/Folder1/File1.txt/@type=metadata&version=1778267772"
-
Metadata records do not conform to an uniform Coscine Profile. Instead, they they conform to the profile associated with the resource they belong to. The viable properties are defined by that profile.
Limitations
Pure SPARQL navigation from resource metadata records to file metadata records is currently not possible. While the internal model follows a DCAT container structure that would allow this, due to technical reasons, this is currently not replicated on the public SPARQL endpoint.
The workaround relies on finding the resource URI as substring of graph names for the metadata records of the files/folders of the resource.
Hint
The dashed items shown in Figure 4 are currently not part of the public Coscine Graph. User Metadata is not exported outside of the project and resource context. There are no named grahps for users.