semvec/pypi-packages huggingface dataset:
sari-field-definitions-generator 0.2.19
A generator for Field Definitions for ResearchSpace and Metaphacts
Requires Python: >=3.6

# SARI Field Definitions Generator

A generator for Metaphacts/ResearchSpace field definitions

## Installations

install using pip

```sh
pip install sari-field-definitions-generator
```

## Usage

Define field definitions as a Python dict or in an external yaml file:

```yaml
prefix: http://rs.swissartresearch.net/instances/fields/

fields:

    - id: {unique identifier}
      label: {label}
      description: {description}
      dataType: {datatype}
      domain: {domain}
      range: {range}
      minOccurs: #
      maxOccurs: #
      queries:
        - ask: '{ask query}'
        - delete: '{delete query}'
        - insert: '{insert query}'
        - select: '{select query}'
        - valueSet: '{value set query}'
          
    - ...
```

Then, load and compile it using the generator

```python
from sariFieldDefinitionsGenerator import generator

inputFile = './fieldDefinitions.yml'
outputFile = '../ldp/assets/fieldDefinitions.trig'

model = generator.loadSourceFromFile(inputFile)

output = generator.generate(model, generator.METAPHACTS)

with open(outputFile, 'w') as f:
    f.write(output)
```

Available templates are:
- `generator.METAPHACTS` for Metaphacts Open Source Platform
- `generator.RESEARCHSPACE` for ResearchSpace
- `generator.UNIVERSAL` for both platforms
- `generator.JSON` for a JSON representation
- `generator.INLINE` for a Backend Template version
TCKN-generator 0.0.1
Turkish citizen idendity number generator and validator python package for test purposes only
Requires Python: >=3.7

# Turkish Citizen Number Generator & Validator

Turkish citizen idendity number generator and validator python package for test purposes only

call generator function without arguments
```commandline
generator()

:returns
28210487...
```

call validator function with any tckn as a string which you want to test
returns a tuple which holds bool and tckn:str value
```commandline
validator('tckn')
:returns
(True, '28210487...')
```

# Contributors

[![Github](https://img.shields.io/badge/Github-red?style=flat&logo=github)](https://github.com/kadirkaya28)
&nbsp;
[Kadir Kaya](https://github.com/kadirkaya28)