Skip to content

Commit

Permalink
fixes to uc1_cq3
Browse files Browse the repository at this point in the history
Signed-off-by: mereolog <pawel.garbacz@makolab.com>
  • Loading branch information
mereolog committed Jul 7, 2023
1 parent 72451c3 commit 80498c8
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 56,090 deletions.
25 changes: 13 additions & 12 deletions etc/CQ/Example/uc1_cq3.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@ WHERE {
BIND(uc1_cq3_parameter_1 AS $ActiveMoiety )

# Get Substances with active moiety $ActiveMoiety
{
# Use the shortcut (isActiveMoietyOf or hasActiveMoiety)
?Substance ^idmp-sub:isActiveMoietyOf|idmp-sub:hasActiveMoiety $ActiveMoiety .
} UNION {
# Use the $ActiveMoiety in a role for composition that defines a substance.
[] cmns-dsg:defines ?Substance ;
cmns-pts:hasRole [
a idmp-sub:ActiveMoietyRole ;
cmns-pts:isPlayedBy $ActiveMoiety
] .
}

{
# Use the shortcut (isActiveMoietyOf or hasActiveMoiety)
?Substance ^idmp-sub:isActiveMoietyOf|idmp-sub:hasActiveMoiety $ActiveMoiety .
} UNION {
# Use the $ActiveMoiety in a role for composition that defines a substance.
[] cmns-dsg:defines ?Substance ;
cmns-pts:hasRole [
a idmp-sub:ActiveMoietyRole ;
cmns-pts:isPlayedBy $ActiveMoiety
] .
} UNION {
BIND($ActiveMoiety AS ?Substance)
}

# Make sure that we only return actual substances
?Substance a/rdfs:subClassOf* idmp-sub:Substance .
Expand Down
Loading

0 comments on commit 80498c8

Please sign in to comment.