philbarker / ap2shacl Goto Github PK
View Code? Open in Web Editor NEWConvert and application profile (AP) to SHACL
Convert and application profile (AP) to SHACL
AP shapeInfo targetType key now has list values.
to support philbarker/TAP2SHACL#6
see also philbarker/APClasses#8
E.g. in join up DCAT AP, valueDataType for dct:modified is "xsd:date xsd:dateTime"
This needs to be in SHACL as sh:or ([sh:datatype xsd:data] [sh:datatype xsd:dateTime])
Notes, in the join-up SHACL file this is in a node shape (DateOrDateTimeDataType_Shape), using sh:shape property on sh:property.
Without the explicit shape:
<catalogrecordshapeUpdate/modificationdate> a sh:PropertyShape ;
sh:or ([sh:datatype xsd:date] [sh:datatype xsd:dateTime]) ;
works
equivalent to sh:class
on a property shape: specifies that the value of a property must be typed to specific class[es].
Initially just single value.
e.g.
valueConstraintType = "objectClass"
valueConstraint = "sdo:Person"
<> a sh:PropertyShape ;
sh:class ex:Company .
If shapes csv has True for Madatory element, generate code to check whether any data matches shape.
Don't leave people hunting for error in 100s of lines of csv e.g.:
SHACL Spec says
Note that multiple values for sh:class are interpreted as a conjunction, i.e. the values need to be SHACL instances of all of them.
But we want the value to be any one of the listed values, i.e. to expand multiple values into options sh:in ()
as with other properties.
When a shape is closed it would be useful to suppor sh:ignoredProperties: a list of properties that ignored: i.e. allowed in the shape but have no associated TAP propertyContraint / sh:PropertyShape.
Heading in shapes csv would ignoreProps, which would then be a key in the python AP shapes dict.
For numeric datatypes, can have value constraint type of maximum & minimum which correspond to sh:maxInclusive sh:minInclusive
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.