Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provenance instance file specification #41

Open
Sveino opened this issue May 14, 2023 · 0 comments
Open

Provenance instance file specification #41

Sveino opened this issue May 14, 2023 · 0 comments

Comments

@Sveino
Copy link
Collaborator

Sveino commented May 14, 2023

This is related to issue #40
The activity (http://energy.referencedata.eu/CGM/Action) and for that matter Model (http://energy.referencedata.eu/CGM/Model and Frame (http://energy.referencedata.eu/CGM/Frame) could all be defined as skos:ConceptScheme - like "pure" reference data.
In addition or as an alternative (the business process and tool vendor would in principle decide) they can be implemented as dcat:Dataset and expended to the level needed.
For active this could include initial action (abstract and concrete), process and execution. For W3C support this could be all they way to Manifest vocabulary for test cases
Following:

<> a mf:Manifest ;
     rdfs:label "...Manifest label"
     rdfs:comment "...Manifest comment" ;
     dc:creator "...creator..."
     mf:entries
     (
     ....list of ManifestEntries
     ) .

Example:

<entry1> a sht:Validate ;
   mf:name "Validate simple RDF data with a simple shapes graph" ;
   mf:action [
        sht:shapesGraph <example-shapes.ttl> ; 
        sht:dataGraph <example-data.ttl> ; 
   ] ;
   mf:result [
        a sh:ValidationReport ;
        sh:conforms true ;
   ] ;
   mf:status sht:proposed .

In ENTSO-E RCC Services we would like to include process for CSA, but as a minimum we would need to include automatic validation.

Abstract Action specification: "20230514_ENTSO-E_CGM-Action.jsonld":

{
    "@context": {
        "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        "dcterms": "http://purl.org/dc/terms/",
        "dcat": "http://www.w3.org/ns/dcat#",
        "prov": "http://www.w3.org/ns/prov#",
		"@base" : "http://energy.referencedata.eu/CGM/Action/",
        "xsd": "http://www.w3.org/2001/XMLSchema#"
    },
    "@id": "urn:uuid:e715ded1-4bbb-4948-bda4-e327738dd702",
    "@type": "dcat:Dataset",
    "prov:generatedAtTime": {
        "@value": "2023-05-14T15:24:37Z",
        "@type": "xsd:dateTime"
    },
    "dcterms:title": "20230514_ENTSO-E_CGM-Action",
    "dcterms:temporal": {
        "@type": "dcterms:PeriodOfTime",
        "dcat:startDate": {
            "@value": "2023-05-14T23:00:00Z",
            "@type": "xsd:dateTime"
        }
    },	
    "dcterms:publisher": {
        "@id": "urn:uuid:8bcf30f5-8bdb-460e-b261-f4f0f6e4ebbf",
        "dcterms:title": "ENTSO-E"
    },
     "dcat:isVersionOf": {
        "@id": "http://energy.referencedata.eu/CGM/Action/",
        "dcterms:title": "CGM-Action"		 
    },
	"dcat:version": "1.0",

    "@graph": [
        {
            "@id": "urn:uuid:a494e864-4109-465e-a401-294e18025447",
            "@type": "prov:Activity",
			"prov:type": "modeling",
			"dcterms:title": "CGM-RA",
			"dcterms:description": "Creating the offline Remedial Action definition for Common Grid Model (CGM)."	
 		},
        {
            "@id": "urn:uuid:b608c04c-a256-4966-8cc4-fdaeac24cab9",
            "@type": "prov:Activity",
			"prov:type": "valdating",
			"dcterms:title": "CGM-RA-VF",
			"dcterms:description": "Verifiying (VF) the offline Remedial Action definition for Common Grid Model (CGM)."	
 		}		
    ]
}

The action log file from APG:

{
    "@context": {
        "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        "dcterms": "http://purl.org/dc/terms/",
        "dcat": "http://www.w3.org/ns/dcat#",
        "prov": "http://www.w3.org/ns/prov#",
        "xsd": "http://www.w3.org/2001/XMLSchema#"
    },
    "@id": "urn:uuid:e715ded1-4bbb-4948-bda4-e327738dd702",
    "@type": "dcat:Dataset",
    "prov:generatedAtTime": {
        "@value": "2023-05-14T15:24:37Z",
        "@type": "xsd:dateTime"
    },
    "dcterms:title": "Provenance",
    "dcterms:publisher": {
        "@id": "urn:uuid:a7ce59a4-9b5f-438c-be71-afe6722111ce",
        "dcterms:title": "APG"
    },
     "dcat:isVersionOf": {
        "@id": "http://apg.com/CGM/Provenance"
    },
	"dcterms:references": [
        {
            "@id": "urn:uuid:e715ded1-4bbb-4948-bda4-e327738dd702",
			"dcterms:title": "20230514_ENTSO-E_CGM-Action"			
        }
    ]
	"dcat:version": "1.0",

    "@graph": [
        {
            "@id": "urn:uuid:f5dc9c54-4de6-4dff-8824-00ecb8a40d8b",
            "@type": "prov:Activity",
			"prov:specializationOf": {
				"@id": "urn:uuid:a494e864-4109-465e-a401-294e18025447",
				"dcterms:title": "CGM-RA"
			},
			"dcterms:title": "20230512T2230Z_APG_CGM-RA",
			"dcterms:description": "Creating the APG offline Remedial Action definition for Common Grid Model (CGM).",
			"prov:wasAssociatedWith": {
				"@id": "http://energy.referencedata.eu/CGM/SoftwareAgent/178a3674-e685-47d8-af57-6619dd925df4",
				"dcterms:title": "The Best RA modelling tool"
			},
			"prov:generated": {
				"@id": "urn:uuid:6e39b3ee-045d-42c0-9f99-2479640080ac",
				"dcterms:title": "20230512T2230Z_APG_CGM-RA"
			},
			"prov:endedAtTime": {
				"@value": "2023-05-14T15:24:37Z",
				"@type": "xsd:dateTime"
			},
 		}		
    ]
}
@Sveino Sveino changed the title Action instance file specification Provenance instance file specification May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant