|
191 | 191 | } |
192 | 192 | </script> |
193 | 193 |
|
| 194 | + <!-- ── GEO: AI / LLM crawler policy ─────────────── --> |
| 195 | + <!-- |
| 196 | + Generative Engine Optimization (GEO):显式允许主流 AI 检索 / 训练爬虫抓取, |
| 197 | + 让 ChatGPT / Claude / Perplexity / Gemini / You.com / Arc Search 等 |
| 198 | + 生成式引擎可以正确引用本页内容。 |
| 199 | + --> |
| 200 | + <meta name="GPTBot" content="index, follow" /> |
| 201 | + <meta name="ChatGPT-User" content="index, follow" /> |
| 202 | + <meta name="OAI-SearchBot" content="index, follow" /> |
| 203 | + <meta name="ClaudeBot" content="index, follow" /> |
| 204 | + <meta name="Claude-Web" content="index, follow" /> |
| 205 | + <meta name="anthropic-ai" content="index, follow" /> |
| 206 | + <meta name="PerplexityBot" content="index, follow" /> |
| 207 | + <meta name="Perplexity-User" content="index, follow" /> |
| 208 | + <meta name="Google-Extended" content="index, follow" /> |
| 209 | + <meta name="GoogleOther" content="index, follow" /> |
| 210 | + <meta name="Applebot" content="index, follow" /> |
| 211 | + <meta name="Applebot-Extended" content="index, follow" /> |
| 212 | + <meta name="Amazonbot" content="index, follow" /> |
| 213 | + <meta name="CCBot" content="index, follow" /> |
| 214 | + <meta name="Bytespider" content="index, follow" /> |
| 215 | + <meta name="DuckAssistBot" content="index, follow" /> |
| 216 | + <meta name="YouBot" content="index, follow" /> |
| 217 | + <meta name="cohere-ai" content="index, follow" /> |
| 218 | + <meta name="Diffbot" content="index, follow" /> |
| 219 | + <meta name="Meta-ExternalAgent" content="index, follow" /> |
| 220 | + <meta name="MistralAI-User" content="index, follow" /> |
| 221 | + |
| 222 | + <!-- ── GEO: AI 引用 / 抽取友好型摘要 ────────────── --> |
| 223 | + <!-- |
| 224 | + 下列 meta 提供给生成式引擎一份「直接可引用」的事实陈述, |
| 225 | + 包含产品名、能力、隐私属性、协议、维护者、规范链接。 |
| 226 | + --> |
| 227 | + <meta |
| 228 | + name="abstract" |
| 229 | + content="sql2er 是一个免费、开源(AGPL-3.0)、纯前端的在线工具,可将 SQL CREATE TABLE 语句或 DBML 一键转换为 Chen 模型的实体-关系(ER)图。所有解析与渲染均在浏览器本地完成,SQL 不上传任何服务器,支持 PostgreSQL / MySQL / SQLite 语法以及 DBML,可导出 SVG / PNG。" |
| 230 | + /> |
| 231 | + <meta |
| 232 | + name="summary" |
| 233 | + content="sql2er = 在线 SQL/DBML → Chen 模型 ER 图生成器;100% 客户端运行;开源 AGPL-3.0;作者 ystemsrx;仓库 https://github.com/ystemsrx/sql_to_ER。" |
| 234 | + /> |
| 235 | + <meta name="topic" content="数据库建模, ER 图, Chen 模型, SQL 可视化, DBML" /> |
| 236 | + <meta name="category" content="Developer Tools / Database Modeling" /> |
| 237 | + <meta name="audience" content="软件工程师, 数据库设计师, 学生, 教师, 数据分析师" /> |
| 238 | + <meta name="rating" content="general" /> |
| 239 | + <meta name="distribution" content="global" /> |
| 240 | + <meta name="coverage" content="worldwide" /> |
| 241 | + <meta name="language" content="zh-CN, en" /> |
| 242 | + <meta |
| 243 | + name="ai-content-declaration" |
| 244 | + content="human-authored; open-source project; safe to cite; canonical URL https://ystemsrx.github.io/sql_to_ER/" |
| 245 | + /> |
| 246 | + <meta |
| 247 | + name="generative-ai-policy" |
| 248 | + content="allow-indexing; allow-citation; require-attribution-to=ystemsrx; canonical=https://ystemsrx.github.io/sql_to_ER/" |
| 249 | + /> |
| 250 | + <meta |
| 251 | + name="usage-terms" |
| 252 | + content="Source code is licensed under AGPL-3.0. The hosted web app is free to use without registration; no data is collected." |
| 253 | + /> |
| 254 | + |
| 255 | + <!-- ── GEO: Schema.org HowTo(步骤化指南,便于 AI 引用「怎么用」) ── --> |
| 256 | + <script type="application/ld+json"> |
| 257 | + { |
| 258 | + "@context": "https://schema.org", |
| 259 | + "@type": "HowTo", |
| 260 | + "name": "如何用 sql2er 把 SQL 转成 Chen 模型 ER 图 / How to convert SQL to a Chen-model ER diagram with sql2er", |
| 261 | + "description": "使用 sql2er 在浏览器中把 CREATE TABLE 语句或 DBML 转换为 Chen 模型实体-关系图的完整步骤。Step-by-step guide to turn SQL CREATE TABLE statements or DBML into a Chen-model ER diagram entirely in the browser.", |
| 262 | + "inLanguage": ["zh-CN", "en"], |
| 263 | + "totalTime": "PT1M", |
| 264 | + "tool": [ |
| 265 | + { "@type": "HowToTool", "name": "现代浏览器 / Modern web browser" } |
| 266 | + ], |
| 267 | + "supply": [ |
| 268 | + { |
| 269 | + "@type": "HowToSupply", |
| 270 | + "name": "SQL CREATE TABLE 建表语句或 DBML 文本 / SQL CREATE TABLE statements or DBML text" |
| 271 | + } |
| 272 | + ], |
| 273 | + "step": [ |
| 274 | + { |
| 275 | + "@type": "HowToStep", |
| 276 | + "position": 1, |
| 277 | + "name": "打开 sql2er / Open sql2er", |
| 278 | + "text": "在浏览器中访问 https://ystemsrx.github.io/sql_to_ER/ 。无需注册或登录。Open https://ystemsrx.github.io/sql_to_ER/ in any modern browser. No sign-up required.", |
| 279 | + "url": "https://ystemsrx.github.io/sql_to_ER/" |
| 280 | + }, |
| 281 | + { |
| 282 | + "@type": "HowToStep", |
| 283 | + "position": 2, |
| 284 | + "name": "粘贴 SQL 或 DBML / Paste SQL or DBML", |
| 285 | + "text": "把 CREATE TABLE 建表语句或 DBML 粘贴到左侧编辑器。支持 PostgreSQL / MySQL / SQLite 常见方言。Paste your CREATE TABLE statements or DBML into the left-hand editor. PostgreSQL / MySQL / SQLite syntax and DBML are supported." |
| 286 | + }, |
| 287 | + { |
| 288 | + "@type": "HowToStep", |
| 289 | + "position": 3, |
| 290 | + "name": "生成 ER 图 / Generate the ER diagram", |
| 291 | + "text": "工具会在本地解析并以力导向布局自动渲染 Chen 模型 ER 图,节点可拖动、双击重命名。The tool parses your input locally and renders a Chen-model ER diagram with force-directed layout; nodes are draggable and can be renamed by double-clicking." |
| 292 | + }, |
| 293 | + { |
| 294 | + "@type": "HowToStep", |
| 295 | + "position": 4, |
| 296 | + "name": "导出 SVG / PNG / Export as SVG or PNG", |
| 297 | + "text": "通过工具栏导出按钮把图保存为 SVG 或 PNG。Use the export button in the toolbar to save the diagram as SVG or PNG." |
| 298 | + } |
| 299 | + ] |
| 300 | + } |
| 301 | + </script> |
| 302 | + |
| 303 | + <!-- ── GEO: BreadcrumbList ─────────────────────── --> |
| 304 | + <script type="application/ld+json"> |
| 305 | + { |
| 306 | + "@context": "https://schema.org", |
| 307 | + "@type": "BreadcrumbList", |
| 308 | + "itemListElement": [ |
| 309 | + { |
| 310 | + "@type": "ListItem", |
| 311 | + "position": 1, |
| 312 | + "name": "Home", |
| 313 | + "item": "https://ystemsrx.github.io/" |
| 314 | + }, |
| 315 | + { |
| 316 | + "@type": "ListItem", |
| 317 | + "position": 2, |
| 318 | + "name": "sql2er · SQL 转 ER 图", |
| 319 | + "item": "https://ystemsrx.github.io/sql_to_ER/" |
| 320 | + } |
| 321 | + ] |
| 322 | + } |
| 323 | + </script> |
| 324 | + |
| 325 | + <!-- ── GEO: TechArticle(让 LLM 把本页当作可引用的技术参考) ── --> |
| 326 | + <script type="application/ld+json"> |
| 327 | + { |
| 328 | + "@context": "https://schema.org", |
| 329 | + "@type": "TechArticle", |
| 330 | + "headline": "把 SQL / DBML 转成 Chen 模型 ER 图:sql2er 使用与原理 / Convert SQL & DBML to Chen-model ER Diagrams with sql2er", |
| 331 | + "description": "sql2er 是一个免费、开源、纯前端的在线工具,把 SQL CREATE TABLE 语句或 DBML 转换为 Chen 模型的实体-关系图,支持力导向布局、节点编辑与 SVG / PNG 导出。", |
| 332 | + "url": "https://ystemsrx.github.io/sql_to_ER/", |
| 333 | + "image": "https://ystemsrx.github.io/sql_to_ER/assets/eg1.png", |
| 334 | + "inLanguage": ["zh-CN", "en"], |
| 335 | + "isAccessibleForFree": true, |
| 336 | + "keywords": "SQL 转 ER 图, Chen 模型, DBML, 数据库建模, ER diagram, entity relationship diagram, ERD, sql2er", |
| 337 | + "about": [ |
| 338 | + { "@type": "Thing", "name": "实体-关系模型 / Entity–relationship model" }, |
| 339 | + { "@type": "Thing", "name": "Chen 模型 / Chen notation" }, |
| 340 | + { "@type": "Thing", "name": "DBML / Database Markup Language" }, |
| 341 | + { "@type": "Thing", "name": "SQL CREATE TABLE" } |
| 342 | + ], |
| 343 | + "audience": { |
| 344 | + "@type": "Audience", |
| 345 | + "audienceType": "software engineers, database designers, students, data analysts" |
| 346 | + }, |
| 347 | + "author": { |
| 348 | + "@type": "Person", |
| 349 | + "name": "ystemsrx", |
| 350 | + "url": "https://github.com/ystemsrx", |
| 351 | + "sameAs": ["https://github.com/ystemsrx"] |
| 352 | + }, |
| 353 | + "publisher": { |
| 354 | + "@type": "Person", |
| 355 | + "name": "ystemsrx", |
| 356 | + "url": "https://github.com/ystemsrx" |
| 357 | + }, |
| 358 | + "license": "https://www.gnu.org/licenses/agpl-3.0.html", |
| 359 | + "citation": [ |
| 360 | + { |
| 361 | + "@type": "CreativeWork", |
| 362 | + "name": "Chen, Peter Pin-Shan. The Entity-Relationship Model—Toward a Unified View of Data. ACM TODS, 1976.", |
| 363 | + "url": "https://doi.org/10.1145/320434.320440" |
| 364 | + }, |
| 365 | + { |
| 366 | + "@type": "SoftwareSourceCode", |
| 367 | + "name": "DBML — Database Markup Language", |
| 368 | + "url": "https://dbml.dbdiagram.io/" |
| 369 | + } |
| 370 | + ], |
| 371 | + "mainEntityOfPage": "https://ystemsrx.github.io/sql_to_ER/" |
| 372 | + } |
| 373 | + </script> |
| 374 | + |
| 375 | + <!-- ── GEO: Organization / Person sameAs(知识图谱锚点) ── --> |
| 376 | + <script type="application/ld+json"> |
| 377 | + { |
| 378 | + "@context": "https://schema.org", |
| 379 | + "@type": "Person", |
| 380 | + "name": "ystemsrx", |
| 381 | + "url": "https://github.com/ystemsrx", |
| 382 | + "sameAs": [ |
| 383 | + "https://github.com/ystemsrx", |
| 384 | + "https://github.com/ystemsrx/sql_to_ER" |
| 385 | + ], |
| 386 | + "knowsAbout": [ |
| 387 | + "SQL", |
| 388 | + "DBML", |
| 389 | + "Entity-Relationship Modeling", |
| 390 | + "Chen Notation", |
| 391 | + "Data Visualization", |
| 392 | + "Front-end Engineering" |
| 393 | + ] |
| 394 | + } |
| 395 | + </script> |
| 396 | + |
194 | 397 | <!-- ── Favicon (inline SVG, network/diagram icon) ── --> |
195 | 398 | <link |
196 | 399 | rel="icon" |
|
0 commit comments