Skip to content

Commit 290e022

Browse files
committed
Update ontology service how to doc
1 parent 0bb78e0 commit 290e022

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

docs/how-tos/pynxtools/ontology-service.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,8 @@ else:
4040
print(f"Error: {response.status_code} - {response.text}")
4141
```
4242

43-
This endpoint returns a JSON object with the list of superclasses for the given NeXus class name, as used internally in the code (see `fetch_superclasses` in `ontology_service.py`).
44-
45-
### Common Tasks
46-
47-
#### Creating/Loading an Ontology
48-
49-
```python
50-
ontology = load_ontology()
51-
```
52-
53-
#### Querying Terms or Concepts
54-
55-
```python
56-
superclasses = fetch_superclasses(ontology, "NXiv_temp")
57-
```
43+
This endpoint returns a JSON object with the list of superclasses for the given NeXus class name, as used internally in [pynxtools](../../../src/pynxtools/nomad/schema.py)
5844

5945
### Further Reading
6046

61-
- [Learn: Understanding the ontology service in pynxtools](../../learn/pynxtools/ontology-service-learn.md)
62-
- See other documentation in `docs/` and module docstrings.
47+
- [Learn: Understanding the ontology service in pynxtools](../../learn/pynxtools/ontology-service.md)

0 commit comments

Comments
 (0)