freeplane-and-yaml 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: freeplane-and-yaml
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A tool to convert YAML files to Freeplane MM format
5
5
  Home-page: https://github.com/romilly/freeplane-and-yaml
6
6
  Author: Romilly Cocking
@@ -38,7 +38,86 @@ pip install freeplane-and-yaml
38
38
 
39
39
  ## Usage
40
40
 
41
- Your YAML file should follow [this schema](src/schema/mindmap-schema.json). Here's an example structure:
41
+ Your YAML file should follow this schema:
42
+
43
+ ```json
44
+ {
45
+ "$schema": "http://json-schema.org/draft-07/schema#",
46
+ "title": "Mind Map Schema",
47
+ "description": "Schema for Freeplane-compatible mind map YAML format",
48
+
49
+ "definitions": {
50
+ "node": {
51
+ "type": "object",
52
+ "required": ["title"],
53
+ "properties": {
54
+ "title": {
55
+ "type": "string",
56
+ "description": "The display text for the node"
57
+ },
58
+ "note": {
59
+ "type": "string",
60
+ "description": "Rich text note attached to the node"
61
+ },
62
+ "children": {
63
+ "type": "object",
64
+ "description": "Child nodes of this node",
65
+ "patternProperties": {
66
+ "^[a-zA-Z0-9_]+$": {
67
+ "$ref": "#/definitions/node"
68
+ }
69
+ },
70
+ "additionalProperties": false
71
+ }
72
+ },
73
+ "additionalProperties": false
74
+ }
75
+ },
76
+
77
+ "type": "object",
78
+ "required": ["root"],
79
+ "properties": {
80
+ "root": {
81
+ "allOf": [
82
+ { "$ref": "#/definitions/node" },
83
+ {
84
+ "required": ["children"],
85
+ "description": "The root node must have at least one child"
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ "additionalProperties": false,
91
+
92
+ "examples": [
93
+ {
94
+ "root": {
95
+ "title": "Example Mind Map",
96
+ "note": "This is the root node",
97
+ "children": {
98
+ "topic1": {
99
+ "title": "First Topic",
100
+ "note": "Note for first topic",
101
+ "children": {
102
+ "subtopic1": {
103
+ "title": "Subtopic 1",
104
+ "note": "Note for subtopic"
105
+ }
106
+ }
107
+ },
108
+ "topic2": {
109
+ "title": "Second Topic",
110
+ "note": "Note for second topic"
111
+ }
112
+ }
113
+ }
114
+ }
115
+ ]
116
+ }
117
+
118
+ ```
119
+
120
+ Here's an example structure:
42
121
 
43
122
  ```yaml
44
123
  root:
@@ -74,13 +153,13 @@ The YAML must conform to these rules:
74
153
  - Child node keys must be alphanumeric (including underscores)
75
154
  - No additional properties are allowed beyond title, note, and children
76
155
 
77
- For full schema details, see [schema](src/schema/mindmap-schema.json).
156
+ For full schema details, see above.
78
157
 
79
158
  ### Converting Documents to YAML using Claude AI
80
159
 
81
160
  You can use Claude Sonnet to automatically convert documents (PDFs, articles, specifications, etc.) into the required YAML format. Here's the workflow:
82
161
 
83
- 1. Share your document and the [schema](src/schema/mindmap-schema.json) with Claude Sonnet.
162
+ 1. Share your document and the schema (above) with Claude Sonnet.
84
163
  2. Use this prompt:
85
164
  ```
86
165
  I've uploaded a document and a schema file. I'd like you to summarise the document as a yaml file following the schema that I uploaded.
@@ -0,0 +1,9 @@
1
+ freeplane_and_yaml/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ freeplane_and_yaml/cli.py,sha256=qeUJXw2MqCf6Kv7c-K63-srGj339beL4JTrAXi5_-3c,1213
3
+ freeplane_and_yaml/convert.py,sha256=dyQLt2FlmCgsQOnutnp1DyLXzqk-guazL8TZwTH0vHI,3440
4
+ freeplane_and_yaml-0.1.3.dist-info/LICENSE,sha256=gCmvBRHqGZibjt4wyMG81SeYWMKuhoGFVQh_Kn1wZ98,1072
5
+ freeplane_and_yaml-0.1.3.dist-info/METADATA,sha256=MCf8NWb6YiHUf6K22xJy_sGOOoSI9TNiyXdw5Mb_rEc,5751
6
+ freeplane_and_yaml-0.1.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
7
+ freeplane_and_yaml-0.1.3.dist-info/entry_points.txt,sha256=kWuCk_RZlzcO9h7yk7uJ4dtJiccQxBocEuQPVt6qzxo,57
8
+ freeplane_and_yaml-0.1.3.dist-info/top_level.txt,sha256=UY6T4vy985r4DAfWpM1D_n6t0cEis5SxtfkPPd-xDhQ,19
9
+ freeplane_and_yaml-0.1.3.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- freeplane_and_yaml/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- freeplane_and_yaml/cli.py,sha256=qeUJXw2MqCf6Kv7c-K63-srGj339beL4JTrAXi5_-3c,1213
3
- freeplane_and_yaml/convert.py,sha256=dyQLt2FlmCgsQOnutnp1DyLXzqk-guazL8TZwTH0vHI,3440
4
- freeplane_and_yaml-0.1.2.dist-info/LICENSE,sha256=gCmvBRHqGZibjt4wyMG81SeYWMKuhoGFVQh_Kn1wZ98,1072
5
- freeplane_and_yaml-0.1.2.dist-info/METADATA,sha256=kTtNNw4SJFhFIfUbpOrMunKQnElit7T7zq08zrzuUzI,4097
6
- freeplane_and_yaml-0.1.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
7
- freeplane_and_yaml-0.1.2.dist-info/entry_points.txt,sha256=kWuCk_RZlzcO9h7yk7uJ4dtJiccQxBocEuQPVt6qzxo,57
8
- freeplane_and_yaml-0.1.2.dist-info/top_level.txt,sha256=UY6T4vy985r4DAfWpM1D_n6t0cEis5SxtfkPPd-xDhQ,19
9
- freeplane_and_yaml-0.1.2.dist-info/RECORD,,