SPARQL query - DNG project Names
Hello forum, I'm trying to determine how I might list the DNG Project Names (not just a URL) in the SPARQL Query below in addition to all of the other columns. I've tried to find the answer by reviewing many of the SPARQL references and I can't seem to make sense of it.
If you're also able to show me where I can find the reference documentation that describes the answer I would also appreciate it.
Main article Link
SPARQL Query
PREFIX dc: <http://purl.org/dc/terms/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rm: <http://www.ibm.com/xmlns/rdm/rdf/> PREFIX rmTypes: <http://www.ibm.com/xmlns/rdm/types/> PREFIX rrmReview: <http://www.ibm.com/xmlns/rrm/reviews/1.0/> PREFIX nav: <http://com.ibm.rdm/navigation#> PREFIX jfs: <http://jazz.net/xmlns/foundation/1.0/> PREFIX owl: <http://www.w3.org/2002/07/owl#> SELECT DISTINCT ?context ( count(?artifact) as ?artifactCount ) ( count(?binding) as ?bindingCount ) ( count (?link) as ?linkCount ) WHERE { {?artifact rdf:type rm:Artifact . OPTIONAL{?artifact rm:boundArtifact ?boundArt .} FILTER (!BOUND(?boundArt)) . ?artifact jfs:resourceContext ?context } UNION {?binding rdf:type rm:Artifact . ?binding rm:boundArtifact ?boundArt . ?binding jfs:resourceContext ?context } UNION { ?link rdf:type rm:Link . ?link jfs:resourceContext ?context } } GROUP BY ?context ORDER BY DESC (?artifactCount ) |
One answer
Hello
We don't store project names in our DNG index so project names cannot be retrieved with a SPARQL query.
Comments
Greg Leff
commented Jun 19 '18, 11:59 a.m.
Thanks Rosa - is there any other way to get the same kind of data? Maybe through a JRS query?
During our internal discussion on this, someone mentioned that perhaps this was possible via LQE SPARQL query. But it was not elaborated on so I have no details on that.
In JRS, I am sure you can get project names for DNG projects. Are you saying you would like to build a JRS report that similarly provides artifact counts by project (name)?
There are a few things to consider:
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Can you please let me know what should you want exactly