This is a tool to find appropriate brick relationships between two nodes.
pip3 install -r requirements.txt
python3 relations.py --help
python3 relations.py --nodes brick:FCU brick:Air
Output:
brick:FCU https://brickschema.org/schema/1.1.0/Brick#regulates brick:Air
brick:Air https://brickschema.org/schema/1.1.0/Brick#isRegulatedBy brick:FCU
This can be a url or a file path.
python3 relations.py --brick Brick.ttl --nodes brick:FCU brick:Air
python3 relations.py --model sample.ttl --nodes wean:fcu1 wean:air1
Output:
wean:fcu1 https://brickschema.org/schema/1.1.0/Brick#regulates wean:air1
wean:air1 https://brickschema.org/schema/1.1.0/Brick#isRegulatedBy wean:fcu1