For example in the following json i need to fetch Catalog and Artifacts .I must be able to fetch catalog by artifact and artifact by catalog.While Artifact is not a direct child of Catalog,here is my jsonld.
{ "@context": { "ids": "https://w3id.org/idsa/core/", "idsc": "https://w3id.org/idsa/code/" }, "@type": "ids:Root", "@id": "http://component.abc.xyz.domainname.de", "ids:resourceCatalog": [ { "@type": "ids:ResourceCatalog", "@id": "https://w3id.org/idsa/autogen/resourceCatalog/897434ab-8638-4cf5-81da-7e1ea8ccd850", "ids:offeredResource": [ { "@type": "ids:Resource", "@id": "https://w3id.org/idsa/autogen/resource/ffcc840c-f7a9-4465-aee7-7d9f3ce39d27", "ids:representation": [ { "@type": "ids:Representation", "@id": "https://w3id.org/idsa/autogen/representation/3ef065fd-c985-4d5a-af8f-59f875c88931", "ids:instance": [ { "@type": "ids:Artifact", "@id": "http://component.abc.xyz.domainname.de/artifact/json-jsonld.txt", "ids:fileName": "json-jsonld.txt", "ids:creationDate": { "@value": "2020-12-17T18:27:44.158+01:00", "@type": "http://www.w3.org/2001/XMLSchema#dateTimeStamp" }, "ids:byteSize": 694 } ] } ] }, { "@type": "ids:Resource", "@id": "https://w3id.org/idsa/autogen/resource/cc011e72-c1e3-4754-94b2-30a45ca967a3", "ids:representation": [ { "@type": "ids:Representation", "@id": "https://w3id.org/idsa/autogen/representation/343c0a82-e2d9-4453-a16b-93c23d172733", "ids:instance": [ { "@type": "ids:Artifact", "@id": "http://component.abc.xyz.domainname.de/artifact/demoSample-desc.jsonId", "ids:fileName": "demoSample-desc.jsonId", "ids:creationDate": { "@value": "2020-11-05T12:44:00.788+01:00", "@type": "http://www.w3.org/2001/XMLSchema#dateTimeStamp" }, "ids:byteSize": 1338 } ] }]}]}]}
question from:
https://stackoverflow.com/questions/65905225/how-can-i-write-a-query-om-sparql-to-fetch-the-details-of-class-and-then-details 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…