Skip to content
Snippets Groups Projects
Commit 9c1c009c authored by esikkala's avatar esikkala
Browse files

FIx instance page network query example

parent 88b59d1e
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
collectionProperties, collectionProperties,
productionsByDecadeQuery, productionsByDecadeQuery,
eventsByDecadeQuery, eventsByDecadeQuery,
manuscriptNetworkLinksQuery, manuscriptInstancePageNetworkLinksQuery,
manuscriptFacetResultsNetworkLinksQuery, manuscriptFacetResultsNetworkLinksQuery,
manuscriptNetworkNodesQuery, manuscriptNetworkNodesQuery,
knowledgeGraphMetadataQuery knowledgeGraphMetadataQuery
...@@ -166,7 +166,7 @@ export const backendSearchConfig = { ...@@ -166,7 +166,7 @@ export const backendSearchConfig = {
}, },
manuscriptInstancePageNetwork: { manuscriptInstancePageNetwork: {
perspectiveID: 'perspective1', perspectiveID: 'perspective1',
q: manuscriptNetworkLinksQuery, q: manuscriptInstancePageNetworkLinksQuery,
nodes: manuscriptNetworkNodesQuery, nodes: manuscriptNetworkNodesQuery,
useNetworkAPI: true useNetworkAPI: true
}, },
......
...@@ -426,13 +426,14 @@ export const collectionProperties = ...@@ -426,13 +426,14 @@ export const collectionProperties =
} }
` `
export const manuscriptNetworkLinksQuery = ` export const manuscriptInstancePageNetworkLinksQuery = `
SELECT DISTINCT (?id as ?source) ?target SELECT DISTINCT (?id as ?source) ?target (1 as ?weight)
WHERE { WHERE {
VALUES ?id { <ID> } VALUES ?id { <ID> }
# get links to other manuscripts with the same author ?id crm:P51_has_former_or_current_owner ?owner .
?id mmm-schema:manuscript_author/^mmm-schema:manuscript_author ?target . ?target crm:P51_has_former_or_current_owner ?owner .
} }
LIMIT 10
` `
export const manuscriptFacetResultsNetworkLinksQuery = ` export const manuscriptFacetResultsNetworkLinksQuery = `
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment