Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/UFOKN/Knowledge-Graph
26 April 2026, 00:37:52 UTC
  • Code
  • Branches (6)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • refs/tags/0.1.0
    • refs/tags/0.1.1
    • refs/tags/0.1.2
    • refs/tags/0.1.3
    • refs/tags/0.2.0
    No releases to show
  • 9ec7a08
  • /
  • COMPETENCY_QUESTIONS.md
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:8b109c62bd6326191ba815ede3b706b63bd84d30
origin badgedirectory badge
swh:1:dir:9ec7a088edf068a368f0978807b9c0ee84da64b6
origin badgerevision badge
swh:1:rev:4b80c683fa9b83d85e3cb09cadc608069172e308
origin badgesnapshot badge
swh:1:snp:c72cfbb7d2958ec9082a9266afc9de82b375f737

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 4b80c683fa9b83d85e3cb09cadc608069172e308 authored by David Kedrowski on 19 April 2024, 19:34:46 UTC
updated for hasCriticalFloodObservation relation
Tip revision: 4b80c68
COMPETENCY_QUESTIONS.md
# Competency Questions

Google Doc: https://docs.google.com/document/d/15YcQOQBwhOLEZfFe4r4aGcLs0B2MxRmHVwYz1lVp0uo/edit#

### Namespaces

```
PREFIX schema: <http://schema.org/>
PREFIX geosparql: <http://www.opengis.net/ont/geosparql#>
PREFIX geofunc: http://www.opengis.net/def/function/geosparql/
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns##>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sf: <http://www.opengis.net/ont/sf#>
PREFIX ufokn: <http://schema.ufokn.org/core/v1/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
```

## Nervous Norman


### 1. I see a storm is coming, will it flood near me? (Yes or No)

_Given:_ A real-time WGS84 coordinate ({?lat} {?lon}), and a radius of {?x} kilometers, any forecasted flooding?

_Query:_
```
SELECT DISTINCT ?forecast
WHERE {
    ?forecast a ufokn:RiskPointDepthForecast .
    
    ?forecast ufokn:isInundated "true"^^xsd:boolean .
    ?forecast prov:used [ ufokn:fromForecast ?f ] .
    ?f ufokn:forecastTime ?forDateTime .
    FILTER (?forDateTime > "{now in ISO datetime format}"^^xsd:dateTime)
    ?forecast ufokn:atRiskPoint ?rp .
    ?rp geosparql:hasGeometry ?sf .
    ?sf geofunc:nearby ("Point({?lon} {?lat} )"^^geosparql:wktLiteral {?x} unit:Kilometer) .
}
LIMIT 1
```

### 2. Is my home at 9219 Oak Knoll Ln, Houston, TX 77078 in danger of being flooded during the approaching weather system?

_Given: FeatureAtRisk <https://id.ufokn.org/feature-at-risk/9219-Oak-Knoll-Ln_Houston_TX-77078>

_Query:_
```
SELECT DISTINCT ?forecast
WHERE { 
    ?forecast a ufokn:RiskPointDepthForecast .
    ?forecast ufokn:isInundated "true"^^xsd:boolean .
    ?forecast prov:used [ ufokn:fromForecast ?f ] .
    ?f ufokn:forecastTime ?forDateTime .
    FILTER (?forDateTime > "{?now in ISO datetime format}"^^xsd:dateTime)
    ?forecast ufokn:atRiskPoint ?rp .
	?feature ufokn:impactedByRiskPoint ?rp .
    BIND (<https://id.ufokn.org/feature-at-risk/9219-Oak-Knoll-Ln_Houston_TX-77078> as ?feature)   
}
LIMIT 1
```

### 3. Will I have access to food, power and fuel during this storm?



### 4. How long will I have to ride out the storm?
_Given:_ Nervous Norman's home (<https://id.ufokn.org/feature-at-risk/9219-Oak-Knoll-Ln_Houston_TX-77078>) and a current datetime {?now}.

_Query:_
```
SELECT DISTINCT ?forDateTime
WHERE { 
    ?forecast a ufokn:RiskPointDepthForecast .
    ?forecast ufokn:isInundated "true"^^xsd:boolean .
    ?forecast prov:used [ ufokn:fromForecast ?f ] .
    ?f ufokn:forecastTime ?forDateTime .
    FILTER (?forDateTime > "{?now in ISO datetime format}"^^xsd:dateTime)
    ?forecast ufokn:atRiskPoint ?rp .
	?feature ufokn:impactedByRiskPoint ?rp .
    BIND (<https://id.ufokn.org/feature-at-risk/9219-Oak-Knoll-Ln_Houston_TX-77078> as ?feature)   
}
ORDER BY DESC(?forDateTime)
LIMIT 1
```

### 5. Is there a possibility of damage to my house?

_Given:_ minimum depth determined as a damage threshold (@see ufokn:FLOODLEVEL_Flooded??)
_Query:_
```
SELECT DISTINCT ?forecast
WHERE { 
    ?forecast a ufokn:RiskPointDepthForecast .
    ?forecast ufokn:isInundated "true"^^xsd:boolean .
    ?forecast ufokn:forecastDepth ?forecastedDepthAtRiskPoint .
    FILTER (?forecastedDepthAtRiskPoint > "{?threshold}"^^xsd:float)
    ?forecast prov:used [ ufokn:fromForecast ?f ] .
    ?f ufokn:forecastTime ?forDateTime .
    FILTER (?forDateTime > "{?now in ISO datetime format}"^^xsd:dateTime)
    ?forecast ufokn:atRiskPoint ?rp .
	?feature ufokn:impactedByRiskPoint ?rp .
    BIND (<https://id.ufokn.org/feature-at-risk/9219-Oak-Knoll-Ln_Houston_TX-77078> as ?feature)   
}
LIMIT 1
```

### 6. Will I need to evacuate? If so, how soon and what is the safest route?

_Given:_ some level of flooding type indicating evacuation needed {?lvl} (@see ufokn:FloodLevelMessage_MajorFlooding)

```
SELECT DISTINCT ?forecast
WHERE { 
    ?forecast a ufokn:RiskPointDepthForecast .
    ?forecast ufokn:isInundated "true"^^xsd:boolean .
    ?forecast ufokn:floodLevelMessage ?msg .
    ?msg a {?lvl} .
    ?forecast prov:used [ ufokn:fromForecast ?f ] .
    ?f ufokn:forecastTime ?forDateTime .
    FILTER (?forDateTime > "{?now in ISO datetime format}"^^xsd:dateTime)
    ?forecast ufokn:atRiskPoint ?rp .
	  ?feature ufokn:impactedByRiskPoint ?rp .
    BIND (<https://id.ufokn.org/feature-at-risk/9219-Oak-Knoll-Ln_Houston_TX-77078> as ?feature)   
}
LIMIT 1
```
### 7. Will my water be safe to drink? Is there contamination in nearby water resources?


### 8. Alert me when a risk point in the given bounding box is predicted to be flooded.

_Given_: {?south} {?west} {?north} {?east} coordinates of a bounding box

_Query_:
```
SELECT DISTINCT ?forecast
WHERE {
    ?forecast a ufokn:RiskPointDepthForecast .
    
    ?forecast ufokn:isInundated "true"^^xsd:boolean .
    ?forecast prov:used [ ufokn:fromForecast ?f ] .
    ?f ufokn:forecastTime ?forDateTime .
    FILTER (?forDateTime > "{now in ISO datetime format}"^^xsd:dateTime)
    ?forecast ufokn:atRiskPoint ?rp .
    ?rp geosparql:hasGeometry ?sf .
    ?sf geofunc:within ("POLYGON (({?south} {?west}, {?north} {?west}, {?north} {?east}, {?south} {?east}, {?south} {?west}))"^^geosparql:wktLiteral {?x} unit:Kilometer) .
}
LIMIT 1
```

### 9. Whom do I contact to report flooding near my house?

### 10. I’m considering purchasing 124 Main St, Anytown, USA. Tell me how often it has flooded in the past?


### 11. I'm a business owner that needs to shut-down operations. How long will the flooding last? When will I be able to return to the area to restart operations.

### 12. How do I claim flood insurance? Should I move or stay in the long-term?

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API