This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
-
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
Configuration Manager
committed
Oct 22, 2019
1 parent
3a9ce09
commit 94e9b97
Showing
11 changed files
with
804 additions
and
791 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
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
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 |
---|---|---|
@@ -1,95 +1,95 @@ | ||
# | ||
# Returns data related to an AccountView | ||
# To be consistent with BGO, data about somain are also required (see. app.php ) | ||
# | ||
PREFIX bgo: <http://linkeddata.center/lodmap-bgo/v1#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
CONSTRUCT { | ||
?domain bgo:hasAccountView ?accountView . | ||
|
||
?accountView | ||
bgo:amountFormatter ?amountFormatter ; | ||
bgo:referenceFormatter ?referenceFormatter ; | ||
bgo:trendFormatter ?trendFormatter ; | ||
bgo:hasHistoricalPerspective ?historicalPerspective ; | ||
bgo:hasBreakdownPerspective ?breakdownPerspective | ||
. | ||
|
||
?historicalPerspective | ||
bgo:title ?titleHistoricalPerspective ; | ||
bgo:amountFormatter ?amountFormatterHistoricalPerspective | ||
. | ||
|
||
?breakdownPerspective | ||
bgo:title ?titleBreackdownPerspective ; | ||
bgo:amountFormatter ?amountFormatterBreackdownPerspective; | ||
bgo:hasTotalizer ?totalizer | ||
. | ||
?perspective | ||
bgo:title ?titlePerspective ; | ||
bgo:amountFormatter ?amountFormatterPerspectve | ||
. | ||
|
||
?totalizer | ||
bgo:filteredFormat ?filteredFormat ; | ||
bgo:ratioFormatter ?ratioFormatter | ||
. | ||
|
||
?formatter | ||
bgo:format ?format ; | ||
bgo:scaleFactor ?scaleFactor ; | ||
bgo:precision ?precision ; | ||
bgo:maxValue ?maxValue; | ||
bgo:minValue ?minValue ; | ||
bgo:nanFormat ?nanFormat ; | ||
bgo:moreThanMaxFormat ?moreThanMaxFormat ; | ||
bgo:lessThanMinFormat ?lessThanMaxFormat | ||
. | ||
} | ||
WHERE { | ||
<?php if ($domainId) {?> | ||
?domain bgo:domainId "<?php echo $domainId;?>" . | ||
<?php } else { ?> | ||
FILTER NOT EXISTS { ?domain bgo:domainId [] } . | ||
<?php }?> | ||
?domain bgo:hasAccountView ?accountView . | ||
OPTIONAL { ?accountView bgo:amountFormatter ?amountFormatter } | ||
OPTIONAL { ?accountView bgo:referenceFormatter ?referenceFormatter } | ||
OPTIONAL { ?accountView bgo:trendFormatter ?trendFormatter } | ||
OPTIONAL { ?accountView bgo:hasHistoricalPerspective ?historicalPerspective } | ||
OPTIONAL { | ||
?accountView bgo:hasBreakdownPerspective ?breakdownPerspective | ||
OPTIONAL { ?breakdownPerspective bgo:hasTotalizer ?totalizer } | ||
OPTIONAL { ?breakdownPerspective bgo:hasTotalizer/bgo:filteredFormat ?filteredFormat } | ||
} | ||
|
||
OPTIONAL { | ||
?accountView bgo:hasHistoricalPerspective|bgo:hasBreakdownPerspective ?perspective . | ||
OPTIONAL { ?perspective bgo:title ?titlePerspective } | ||
OPTIONAL { ?perspective bgo:amountFormatter ?amountFormatterPerspectve } | ||
} | ||
OPTIONAL { | ||
{ ?accountView bgo:amountFormatter|bgo:referenceFormatter|bgo:trendFormatter ?formatter } | ||
UNION | ||
{ | ||
?accountView bgo:hasHistoricalPerspective|bgo:hasBreakdownPerspective ?perspective . | ||
?perspective bgo:amountFormatter ?formatter | ||
} | ||
UNION | ||
{ | ||
?accountView bgo:hasHistoricalPerspective/bgo:hasTotalizer/bgo:ratioFormatter ?formatter | ||
} | ||
OPTIONAL { ?formatter bgo:format ?format } | ||
OPTIONAL { ?formatter bgo:scaleFactor ?scaleFactor } | ||
OPTIONAL { ?formatter bgo:precision ?precision } | ||
OPTIONAL { ?formatter bgo:maxValue ?maxValue } | ||
OPTIONAL { ?formatter bgo:minValue ?minValue } | ||
OPTIONAL { ?formatter bgo:nanFormat ?nanFormat } | ||
OPTIONAL { ?formatter bgo:moreThanMaxFormat ?moreThanMaxFormat } | ||
OPTIONAL { ?formatter bgo:lessThanMinFormat ?lessThanMaxFormat } | ||
} | ||
} | ||
# | ||
# Returns data related to an AccountView | ||
# To be consistent with BGO, data about somain are also required (see. app.php ) | ||
# | ||
PREFIX bgo: <http://linkeddata.center/lodmap-bgo/v1#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
CONSTRUCT { | ||
?domain bgo:hasAccountView ?accountView . | ||
|
||
?accountView | ||
bgo:amountFormatter ?amountFormatter ; | ||
bgo:referenceFormatter ?referenceFormatter ; | ||
bgo:trendFormatter ?trendFormatter ; | ||
bgo:hasHistoricalPerspective ?historicalPerspective ; | ||
bgo:hasBreakdownPerspective ?breakdownPerspective | ||
. | ||
|
||
?historicalPerspective | ||
bgo:title ?titleHistoricalPerspective ; | ||
bgo:amountFormatter ?amountFormatterHistoricalPerspective | ||
. | ||
|
||
?breakdownPerspective | ||
bgo:title ?titleBreackdownPerspective ; | ||
bgo:amountFormatter ?amountFormatterBreackdownPerspective; | ||
bgo:hasTotalizer ?totalizer | ||
. | ||
?perspective | ||
bgo:title ?titlePerspective ; | ||
bgo:amountFormatter ?amountFormatterPerspectve | ||
. | ||
|
||
?totalizer | ||
bgo:filteredFormat ?filteredFormat ; | ||
bgo:ratioFormatter ?ratioFormatter | ||
. | ||
|
||
?formatter | ||
bgo:format ?format ; | ||
bgo:scaleFactor ?scaleFactor ; | ||
bgo:precision ?precision ; | ||
bgo:maxValue ?maxValue; | ||
bgo:minValue ?minValue ; | ||
bgo:nanFormat ?nanFormat ; | ||
bgo:moreThanMaxFormat ?moreThanMaxFormat ; | ||
bgo:lessThanMinFormat ?lessThanMaxFormat | ||
. | ||
} | ||
WHERE { | ||
<?php if ($domainId) {?> | ||
?domain bgo:domainId "<?php echo $domainId;?>" . | ||
<?php } else { ?> | ||
FILTER NOT EXISTS { ?domain bgo:domainId [] } . | ||
<?php }?> | ||
?domain bgo:hasAccountView ?accountView . | ||
OPTIONAL { ?accountView bgo:amountFormatter ?amountFormatter } | ||
OPTIONAL { ?accountView bgo:referenceFormatter ?referenceFormatter } | ||
OPTIONAL { ?accountView bgo:trendFormatter ?trendFormatter } | ||
OPTIONAL { ?accountView bgo:hasHistoricalPerspective ?historicalPerspective } | ||
OPTIONAL { | ||
?accountView bgo:hasBreakdownPerspective ?breakdownPerspective | ||
OPTIONAL { ?breakdownPerspective bgo:hasTotalizer ?totalizer } | ||
OPTIONAL { ?breakdownPerspective bgo:hasTotalizer/bgo:filteredFormat ?filteredFormat } | ||
} | ||
|
||
OPTIONAL { | ||
?accountView bgo:hasHistoricalPerspective|bgo:hasBreakdownPerspective ?perspective . | ||
OPTIONAL { ?perspective bgo:title ?titlePerspective } | ||
OPTIONAL { ?perspective bgo:amountFormatter ?amountFormatterPerspectve } | ||
} | ||
OPTIONAL { | ||
{ ?accountView bgo:amountFormatter|bgo:referenceFormatter|bgo:trendFormatter ?formatter } | ||
UNION | ||
{ | ||
?accountView bgo:hasHistoricalPerspective|bgo:hasBreakdownPerspective ?perspective . | ||
?perspective bgo:amountFormatter ?formatter | ||
} | ||
UNION | ||
{ | ||
?accountView bgo:hasHistoricalPerspective/bgo:hasTotalizer/bgo:ratioFormatter ?formatter | ||
} | ||
OPTIONAL { ?formatter bgo:format ?format } | ||
OPTIONAL { ?formatter bgo:scaleFactor ?scaleFactor } | ||
OPTIONAL { ?formatter bgo:precision ?precision } | ||
OPTIONAL { ?formatter bgo:maxValue ?maxValue } | ||
OPTIONAL { ?formatter bgo:minValue ?minValue } | ||
OPTIONAL { ?formatter bgo:nanFormat ?nanFormat } | ||
OPTIONAL { ?formatter bgo:moreThanMaxFormat ?moreThanMaxFormat } | ||
OPTIONAL { ?formatter bgo:lessThanMinFormat ?lessThanMaxFormat } | ||
} | ||
} |
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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
# | ||
# Returns data related to an Account with bgo:accountId = $resourceId | ||
# To be consistent with BGO, data about perspectives are also required (see. perspectives.php ) | ||
# | ||
PREFIX bgo: <http://linkeddata.center/lodmap-bgo/v1#> | ||
CONSTRUCT { | ||
?account | ||
bgo:abstract ?abstract ; | ||
bgo:versionLabel ?versionLabel ; | ||
bgo:hasHistoryRec ?historyRec ; | ||
bgo:hasBreakdown ?breakdown | ||
. | ||
?historyRec bgo:versionLabel ?historyVersion ; bgo:amount ?historyAmount . | ||
?breakdown bgo:title ?breakdownTitle; bgo:amount ?breakdownAmount . | ||
} | ||
WHERE { | ||
?account bgo:accountId ?accountId ; bgo:amount ?amount . | ||
FILTER( ?accountId = "<?php echo $resourceId;?>" ) | ||
<?php if ($domainId) { | ||
echo "?domain bgo:domainId \"$domainId\"; bgo:hasAccount/bgo:accountId \"$resourceId\" . "; | ||
}?> | ||
OPTIONAL { ?account bgo:title ?title } | ||
OPTIONAL { ?account bgo:referenceAmount ?referenceAmount } | ||
OPTIONAL { ?account bgo:description ?description } | ||
OPTIONAL { ?account bgo:abstract ?abstract } | ||
OPTIONAL { ?account bgo:depiction ?depiction } | ||
OPTIONAL { ?account bgo:versionLabel ?versionLabel } | ||
OPTIONAL { | ||
?account bgo:hasHistoryRec ?historyRec . | ||
?historyRec bgo:versionLabel ?historyVersion ; bgo:amount ?historyAmount | ||
} | ||
OPTIONAL { | ||
?account bgo:hasBreakdown ?breakdown . | ||
?breakdown bgo:title ?breakdownTitle ; bgo:amount ?breakdownAmount | ||
} | ||
} | ||
# | ||
# Returns data related to an Account with bgo:accountId = $resourceId | ||
# To be consistent with BGO, data about perspectives are also required (see. perspectives.php ) | ||
# | ||
PREFIX bgo: <http://linkeddata.center/lodmap-bgo/v1#> | ||
CONSTRUCT { | ||
?account | ||
bgo:abstract ?abstract ; | ||
bgo:versionLabel ?versionLabel ; | ||
bgo:hasHistoryRec ?historyRec ; | ||
bgo:hasBreakdown ?breakdown | ||
. | ||
?historyRec bgo:versionLabel ?historyVersion ; bgo:amount ?historyAmount . | ||
?breakdown bgo:title ?breakdownTitle; bgo:amount ?breakdownAmount . | ||
} | ||
WHERE { | ||
?account bgo:accountId ?accountId ; bgo:amount ?amount . | ||
FILTER( ?accountId = "<?php echo $resourceId;?>" ) | ||
<?php if ($domainId) { | ||
echo "?domain bgo:domainId \"$domainId\"; bgo:hasAccount/bgo:accountId \"$resourceId\" . "; | ||
}?> | ||
OPTIONAL { ?account bgo:title ?title } | ||
OPTIONAL { ?account bgo:referenceAmount ?referenceAmount } | ||
OPTIONAL { ?account bgo:description ?description } | ||
OPTIONAL { ?account bgo:abstract ?abstract } | ||
OPTIONAL { ?account bgo:depiction ?depiction } | ||
OPTIONAL { ?account bgo:versionLabel ?versionLabel } | ||
OPTIONAL { | ||
?account bgo:hasHistoryRec ?historyRec . | ||
?historyRec bgo:versionLabel ?historyVersion ; bgo:amount ?historyAmount | ||
} | ||
OPTIONAL { | ||
?account bgo:hasBreakdown ?breakdown . | ||
?breakdown bgo:title ?breakdownTitle ; bgo:amount ?breakdownAmount | ||
} | ||
} |
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 |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# | ||
# Returns a minimal set of properties for all Account in BGO | ||
# | ||
PREFIX bgo: <http://linkeddata.center/lodmap-bgo/v1#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
CONSTRUCT{ | ||
?account | ||
bgo:accountId ?accountId ; | ||
bgo:amount ?amount ; | ||
bgo:title ?title ; | ||
bgo:referenceAmount ?referenceAmount ; | ||
bgo:description ?description ; | ||
bgo:depiction ?depiction . | ||
} | ||
WHERE { | ||
<?php if ($domainId) {?> | ||
?domain bgo:domainId "<?php echo $domainId;?>" ; | ||
bgo:hasAccount ?account . | ||
<?php }?> | ||
|
||
?account | ||
bgo:accountId ?accountId ; | ||
bgo:amount ?amount . | ||
|
||
OPTIONAL { ?account bgo:title ?title } | ||
OPTIONAL { ?account bgo:referenceAmount ?referenceAmount } | ||
OPTIONAL { ?account bgo:description ?description } | ||
OPTIONAL { ?account bgo:depiction ?depiction } | ||
|
||
} | ||
# | ||
# Returns a minimal set of properties for all Account in BGO | ||
# | ||
PREFIX bgo: <http://linkeddata.center/lodmap-bgo/v1#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
CONSTRUCT{ | ||
?account | ||
bgo:accountId ?accountId ; | ||
bgo:amount ?amount ; | ||
bgo:title ?title ; | ||
bgo:referenceAmount ?referenceAmount ; | ||
bgo:description ?description ; | ||
bgo:depiction ?depiction . | ||
} | ||
WHERE { | ||
<?php if ($domainId) {?> | ||
?domain bgo:domainId "<?php echo $domainId;?>" ; | ||
bgo:hasAccount ?account . | ||
<?php }?> | ||
|
||
?account | ||
bgo:accountId ?accountId ; | ||
bgo:amount ?amount . | ||
|
||
OPTIONAL { ?account bgo:title ?title } | ||
OPTIONAL { ?account bgo:referenceAmount ?referenceAmount } | ||
OPTIONAL { ?account bgo:description ?description } | ||
OPTIONAL { ?account bgo:depiction ?depiction } | ||
|
||
} |
Oops, something went wrong.