Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build test

permissions:
contents: read
packages: write

on:
pull_request:
types: [ready_for_review, opened, reopened, synchronize]
branches:
- main

jobs:
build-fdk-rdf-parse-event-publisher:
name: Build when pull request is created
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }}
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
with:
app_name: fdk-rdf-parse-event-publisher
environment: test
java_version: '21'
coverage_file_path: ./target/site/jacoco/jacoco.xml
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Code scanning (CodeQL)

permissions:
contents: read
security-events: write

on:
pull_request:
types: [ ready_for_review, opened, reopened, synchronize ]
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/deploy-prod&demo.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Deploy to prod&demo

permissions:
contents: read
packages: write

on:
push:
branches:
- main
#on:
# push:
# branches:
# - main

jobs:
build-fdk-rdf-parse-event-publisher:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Deploy to staging

permissions:
contents: read
packages: write

on:
pull_request:
types: [ ready_for_review, opened, reopened, synchronize ]
branches:
- main
#on:
# pull_request:
# types: [ ready_for_review, opened, reopened, synchronize ]
# branches:
# - main

jobs:
build-fdk-rdf-parse-event-publisher:
Expand Down
2 changes: 2 additions & 0 deletions kafka/schemas/no.fdk.concept.ConceptEvent.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"symbols": ["CONCEPT_HARVESTED", "CONCEPT_REASONED", "CONCEPT_REMOVED"]
}
},
{"name": "harvestRunId", "type": ["null", "string"], "default": null},
{"name": "uri", "type": ["null", "string"], "default": null},
{"name": "fdkId", "type": "string"},
{"name": "graph", "type": "string"},
{"name": "timestamp", "type": "long"}
Expand Down
2 changes: 2 additions & 0 deletions kafka/schemas/no.fdk.event.EventEvent.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"symbols": ["EVENT_HARVESTED", "EVENT_REASONED", "EVENT_REMOVED"]
}
},
{"name": "harvestRunId", "type": ["null", "string"], "default": null},
{"name": "uri", "type": ["null", "string"], "default": null},
{"name": "fdkId", "type": "string"},
{"name": "graph", "type": "string"},
{"name": "timestamp", "type": "long"}
Expand Down
103 changes: 103 additions & 0 deletions kafka/schemas/no.fdk.harvest.HarvestEvent.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"name": "HarvestEvent",
"namespace": "no.fdk.harvest",
"type": "record",
"fields": [
{
"name": "phase",
"type": {
"type": "enum",
"name": "HarvestPhase",
"symbols": [
"INITIATING",
"HARVESTING",
"REASONING",
"RDF_PARSING",
"RESOURCE_PROCESSING",
"SEARCH_PROCESSING",
"AI_SEARCH_PROCESSING",
"SPARQL_PROCESSING"
]
}
},
{
"name": "runId",
"type": ["null", "string"],
"default": null,
"doc": "Unique identifier (UUID) for the harvest run this event belongs to"
},
{
"name": "dataType",
"type": {
"type": "enum",
"name": "DataType",
"symbols": [
"concept",
"dataset",
"informationmodel",
"dataservice",
"publicService",
"event"
]
}
},
{
"name": "dataSourceId",
"type": ["null", "string"],
"default": null
},
{
"name": "dataSourceUrl",
"type": ["null", "string"],
"default": null
},
{
"name": "acceptHeader",
"type": ["null", "string"],
"default": null
},
{
"name": "fdkId",
"type": ["null", "string"],
"default": null
},
{
"name": "resourceUri",
"type": ["null", "string"],
"default": null
},
{
"name": "startTime",
"type": ["null", "string"],
"default": null
},
{
"name": "endTime",
"type": ["null", "string"],
"default": null
},
{
"name": "errorMessage",
"type": ["null", "string"],
"default": null
},
{
"name": "changedResourcesCount",
"type": ["null", "int"],
"default": null,
"doc": "Number of changed resources (only for DATASOURCE_RESOURCE_EXTRACTION)"
},
{
"name": "unchangedResourcesCount",
"type": ["null", "int"],
"default": null,
"doc": "Number of unchanged resources (only for DATASOURCE_RESOURCE_EXTRACTION)"
},
{
"name": "removedResourcesCount",
"type": ["null", "int"],
"default": null,
"doc": "Number of removed resources (only for DATASOURCE_RESOURCE_EXTRACTION)"
}
]
}
2 changes: 2 additions & 0 deletions kafka/schemas/no.fdk.rdf.parse.RdfParseEvent.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"symbols": ["DATASET", "DATA_SERVICE", "CONCEPT", "INFORMATION_MODEL", "SERVICE", "EVENT"]
}
},
{"name": "harvestRunId", "type": ["null", "string"], "default": null},
{"name": "uri", "type": ["null", "string"], "default": null},
{"name": "fdkId", "type": "string"},
{"name": "data", "type": "string"},
{"name": "timestamp", "type": "long"}
Expand Down
2 changes: 2 additions & 0 deletions kafka/schemas/no.fdk.service.ServiceEvent.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"symbols": ["SERVICE_HARVESTED", "SERVICE_REASONED", "SERVICE_REMOVED"]
}
},
{"name": "harvestRunId", "type": ["null", "string"], "default": null},
{"name": "uri", "type": ["null", "string"], "default": null},
{"name": "fdkId", "type": "string"},
{"name": "graph", "type": "string"},
{"name": "timestamp", "type": "long"}
Expand Down
Loading
Loading