-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5e7eee
commit 91f9830
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
PREFIX dc: <http://purl.org/dc/elements/1.1/> | ||
PREFIX dataSheet: <http://example.com/eds-oml/vocabulary/DataSheet#> | ||
PREFIX device: <http://example.com/eds-oml/vocabulary/Device#> | ||
PREFIX metadata: <http://example.com/eds-oml/vocabulary/Metadata#> | ||
PREFIX package: <http://example.com/eds-oml/vocabulary/Package#> | ||
PREFIX component: <http://example.com/eds-oml/vocabulary/Component#> | ||
PREFIX interface: <http://example.com/eds-oml/vocabulary/Interface#> | ||
|
||
SELECT ?lamp ?interfaceInstance ?metadataInstance | ||
WHERE { | ||
# Find instances of the lamp | ||
?lamp a device:Device . | ||
|
||
# Get metadata associated with the lamp | ||
OPTIONAL { | ||
?metadataInstance a metadata:Metadata ; | ||
device:hasDevice ?lamp . | ||
} | ||
|
||
# Get interfaces associated with the lamp | ||
OPTIONAL { | ||
?componentInstance a component:Component ; | ||
component:referencesInterface ?interfaceInstance ; | ||
package:isContainedByPackage ?packageInstance . | ||
?packageInstance a package:Package ; | ||
dataSheet:isPackageOfDatasheet ?datasheetInstance . | ||
?datasheetInstance dataSheet:datasheetContainsDevice ?lamp . | ||
} | ||
} |