|
| 1 | +# SPDX-FileCopyrightText: 2025 Robin Vobruba <hoijui.quaero@gmail.com> |
| 2 | +# |
| 3 | +# SPDX-License-Identifier: Unlicense |
| 4 | + |
| 5 | +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
| 6 | +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 7 | +PREFIX ods: <http://w3id.org/oseg/ont/ods#> |
| 8 | +PREFIX okh: <http://w3id.org/oseg/ont/okh#> |
| 9 | +PREFIX okhkrawl: <http://w3id.org/oseg/ont/okhkrawl#> |
| 10 | +PREFIX schema: <https://schema.org/> |
| 11 | +PREFIX tsdc: <https://w3id.org/oseg/ont/tsdc/core#> |
| 12 | +PREFIX void: <http://rdfs.org/ns/void#> |
| 13 | + |
| 14 | +# All projects, including most of their properties |
| 15 | +# Something along these lines would be used when viewing the detail-view |
| 16 | +# of a project on a web-UI, for example. |
| 17 | +SELECT |
| 18 | + ?name |
| 19 | + ?src_license |
| 20 | + ?src_licensor |
| 21 | + ?src_url |
| 22 | + ?proj_license |
| 23 | + ?proj_licensor |
| 24 | + ?proj_function |
| 25 | + ?proj_documentation_language |
| 26 | + ?proj_version |
| 27 | + ?proj_organization |
| 28 | + ?proj_readme |
| 29 | + ?proj_technology_readiness_level |
| 30 | + ?proj_documentation_readiness_level |
| 31 | + ?proj_attestation |
| 32 | + ?proj_doi |
| 33 | + ?proj_std |
| 34 | + ?proj_cpc |
| 35 | + ?proj_tsdc_id |
| 36 | + ?proj_bom_url |
| 37 | + ?proj_manufacturing_instructions |
| 38 | + ?proj_user_manual |
| 39 | + ?proj_mass |
| 40 | + ?proj_outer_dimensions_width |
| 41 | + ?proj_outer_dimensions_height |
| 42 | + ?proj_outer_dimensions_depth |
| 43 | + ?proj_img_slot |
| 44 | + ?proj_img_tag |
| 45 | + ?proj_img_caption |
| 46 | + ?proj_img_url |
| 47 | + ?proj_release_url |
| 48 | +WHERE { |
| 49 | + ?ds |
| 50 | + a ods:Dataset ; |
| 51 | + ods:hasSource ?src ; |
| 52 | + void:rootResource ?proj ; |
| 53 | + . |
| 54 | + ?src |
| 55 | + ods:license ?src_license ; |
| 56 | + ods:licensor ?src_licensor ; |
| 57 | + ods:dataSourcingProcedure okhkrawl:dataSourcingProcedureGeneratedManifest ; |
| 58 | + . |
| 59 | + OPTIONAL { ?src ods:source ?src_url . } |
| 60 | + ?proj |
| 61 | + okh:name ?name ; |
| 62 | + ods:license ?proj_license ; |
| 63 | + ods:licensor ?proj_licensor ; |
| 64 | + okh:function ?proj_function ; |
| 65 | + . |
| 66 | + OPTIONAL { ?proj okh:documentationLanguage ?proj_documentation_language . } |
| 67 | + OPTIONAL { ?proj okh:version ?proj_version . } |
| 68 | + OPTIONAL { ?proj okh:organization ?proj_organization . } |
| 69 | + OPTIONAL { ?proj okh:readme ?proj_readme . } |
| 70 | + OPTIONAL { ?proj okh:technologyReadinessLevel ?proj_technology_readiness_level . } |
| 71 | + OPTIONAL { ?proj okh:documentationReadinessLevel ?proj_documentation_readiness_level . } |
| 72 | + OPTIONAL { ?proj okh:attestation ?proj_attestation . } |
| 73 | + OPTIONAL { ?proj okh:hasPublication [ okh:doi ?proj_doi ] . } |
| 74 | + OPTIONAL { ?proj okh:compliesWith [ okh:standardID ?proj_std ] . } |
| 75 | + OPTIONAL { ?proj okh:cpcPatentClass ?proj_cpc . } |
| 76 | + OPTIONAL { ?proj okh:tsdc [ tsdc:id ?proj_tsdc_id ] . } |
| 77 | + OPTIONAL { ?proj okh:hasBoM [ ods:url ?proj_bom_url ] . } |
| 78 | + OPTIONAL { ?proj okh:hasManufacturingInstructions [ ods:url ?proj_manufacturing_instructions ] . } |
| 79 | + OPTIONAL { ?proj okh:hasUserManual [ ods:url ?proj_user_manual ] . } |
| 80 | + OPTIONAL { ?proj okh:hasMass ?proj_mass . } |
| 81 | + OPTIONAL { ?proj okh:hasOuterDimensions [ |
| 82 | + okh:width ?proj_outer_dimensions_width ; |
| 83 | + okh:height ?proj_outer_dimensions_height ; |
| 84 | + okh:depth ?proj_outer_dimensions_depth ; |
| 85 | + ] . } |
| 86 | + OPTIONAL { ?proj okh:hasImage [ |
| 87 | + okh:fillsSlot [ schema:termCode ?proj_img_slot ] ; |
| 88 | + okh:hasTag [ schema:termCode ?proj_img_tag ] ; |
| 89 | + okh:depicts ?proj_img_caption ; |
| 90 | + ods:url ?proj_img_url ; |
| 91 | + ] . } |
| 92 | + OPTIONAL { ?proj okh:release ?proj_release_url . } |
| 93 | +} |
| 94 | +LIMIT 100 |
0 commit comments