Skip to content

Commit

Permalink
Merge pull request #24 from DanSmith/master
Browse files Browse the repository at this point in the history
Update build settings to include additional owl, shex, and shacl outputs
  • Loading branch information
DanSmith committed Dec 19, 2023
2 parents 4c4781f + ee02d4e commit b7ea2ab
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
mkdir ddi-lifecycle
xcopy ddi-lifecycle-all-outputs\xsd ddi-lifecycle\xsd /E /I
xcopy ddi-lifecycle-all-outputs\json ddi-lifecycle\json /E /I
xcopy ddi-lifecycle-all-outputs\owl ddi-lifecycle\owl /E /I
xcopy ddi-lifecycle-all-outputs\owl ddi-lifecycle\rdf /E /I
xcopy ddi-lifecycle-all-outputs\linkml ddi-lifecycle\rdf /E /I
ren ddi-lifecycle ddi-lifecycle-${{env.SHORT_SHA}}
ren ddi-lifecycle-all-outputs ddi-lifecycle-all-outputs-${{env.SHORT_SHA}}
7z a -tzip "ddi-lifecycle-all-outputs-${{env.SHORT_SHA}}.zip" "ddi-lifecycle-all-outputs-${{ENV.SHORT_SHA}}\*"
Expand Down
2 changes: 1 addition & 1 deletion ItemTypes/Sequence/Sequence.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Name,DataType,MinCardinality,MaxCardinality,Description,Ordered,AllowSubtypes,MinLength,MaxLength,Enumeration,Pattern,MinInclusive,MinExclusive,MaxInclusive,MaxExclusive,DeprecatedNamespace,DeprecatedElementOrAttribute,DeprecatedChoiceGroup
TypeOfSequence,CodeValueType,0,n,"Provides the ability to ""type"" a sequence for classification or processing purposes. Supports the use of an external controlled vocabulary.",,,,,,,,,,,ddi:datacollection:3_3,e,
ControlConstructReference,ControlConstruct,0,n,References control constructs in the order that they should appear within the instrument.,,,,,,,,,,,ddi:datacollection:3_3,e,
ControlConstructReference,ControlConstruct,0,n,References control constructs in the order that they should appear within the instrument.,true,,,,,,,,,,ddi:datacollection:3_3,e,
ConstructSequence,SpecificSequenceType,0,1,Describes alternate ordering for different cases using the SpecificSequence structure. If you set the sequence to anything other than order of appearance the only allowable children are QuestionConstruct or Sequence. Contents must be randomizable.,,,,,,,,,,,ddi:datacollection:3_3,e,
4 changes: 2 additions & 2 deletions Settings/Settings.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Key,Value
Title,DDI Data Documentation 4.0
Title,DDI Lifecycle Data Documentation 4.0
ShortTitle,DDI40
Slug,ddi
Slug,ddi4
Description,"The Data Documentation Initiative (DDI) is an international standard for describing the data produced by surveys and other observational methods in the social, behavioral, economic, and health sciences. DDI is a free standard that can document and manage different stages in the research data lifecycle, such as conceptualization, collection, processing, distribution, discovery, and archiving. Documenting data with DDI facilitates understanding, interpretation, and use -- by people, software systems, and computer networks."
NamespaceUrl,http://ddialliance.org/ddi
NamespacePrefix,ddi
Expand Down
12 changes: 11 additions & 1 deletion build/build-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,24 @@ echo GraphQL
cogs publish-graphql . ddi-lifecycle-all-outputs\graphql --overwrite

echo XSD
cogs publish-xsd . ddi-lifecycle-all-outputs\xsd --overwrite --namespace "http://www.ddialliance.org/ddi" --namespacePrefix ddi
cogs publish-xsd . ddi-lifecycle-all-outputs\xsd --overwrite --namespace "ddi:instance:4_0" --namespacePrefix ddi

echo UML
cogs publish-uml . ddi-lifecycle-all-outputs\uml --location graphviz\release\bin\dot.exe --overwrite

echo OWL
cogs publish-owl . ddi-lifecycle-all-outputs\owl --overwrite

echo LinkML
cogs publish-linkml . ddi-lifecycle-all-outputs\linkml --namespace "http://rdf-vocabulary.ddialliance.org/lifecycle#" --namespacePrefix "ddi" --overwrite

echo Build LinkML
PUSHD ddi-lifecycle-all-outputs\linkml
CALL gen-owl --metadata-profile rdfs -f ttl linkml.yml > ddi4.owl.ttl
CALL gen-shacl linkml.yml > ddi4.shacl
CALL gen-shex linkml.yml > ddi4.shex
POPD

REM cogs publish-dot . --location ddi-lifecycle-all-outputs\dot graphviz\release\bin\dot.exe --overwrite --single
REM cogs publish-dot . --location ddi-lifecycle-all-outputs\dot graphviz\release\bin\dot.exe --overwrite --all --inheritance

Expand Down
3 changes: 2 additions & 1 deletion build/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sphinx
sphinx_rtd_theme
Pygments
Pygments
linkml

0 comments on commit b7ea2ab

Please sign in to comment.