import React, { useEffect, useRef, useState } from 'react'; import * as d3 from 'd3'; const TaxonomyTree = () => { const svgRef = useRef(); const containerRef = useRef(); const [searchTerm, setSearchTerm] = useState(''); const [stats, setStats] = useState({ l1: 0, l2: 0, l3: 0 }); const [selectedNode, setSelectedNode] = useState(null); // Parse the markdown data into a tree structure const parseMarkdown = (markdown) => { const lines = markdown.split('\n'); const root = { name: 'GOV.UK Business Taxonomy', children: [], slug: '', level: 'root' }; let currentL1 = null; let currentL2 = null; let currentL3 = null; let l1Count = 0, l2Count = 0, l3Count = 0; for (let i = 0; i < lines.length; i++) { const line = lines[i].trim(); // Match L1 sections: ## **N. Title** const l1Match = line.match(/^##\s+\*\*(\d+\.\s+.+?)\*\*$/); if (l1Match) { const nextLine = lines[i + 1]?.trim(); const slugMatch = nextLine?.match(/^L1 Slug:\s+(.+)$/); currentL1 = { name: l1Match[1], children: [], slug: slugMatch ? slugMatch[1] : '', level: 'L1', _children: null }; root.children.push(currentL1); currentL2 = null; currentL3 = null; l1Count++; continue; } // Match L2 sections: ### **N.N Title** const l2Match = line.match(/^###\s+\*\*(.+?)\*\*$/); if (l2Match && currentL1) { const nextLine = lines[i + 1]?.trim(); const slugMatch = nextLine?.match(/^L2 Slug:\s+(.+)$/); currentL2 = { name: l2Match[1], children: [], slug: slugMatch ? slugMatch[1] : '', level: 'L2', parentSlug: currentL1.slug, _children: null }; currentL1.children.push(currentL2); currentL3 = null; l2Count++; continue; } // Match L3 sections: **Title** (but not the L1/L2 headers) const l3Match = line.match(/^\*\*(.+?)\*\*$/); if (l3Match && currentL2 && !line.startsWith('##')) { currentL3 = { name: l3Match[1], slug: '', level: 'L3', parentSlug: currentL2.slug, grandParentSlug: currentL1.slug }; // Look for URL Slug on next line const nextLine = lines[i + 1]?.trim(); const slugMatch = nextLine?.match(/^-\s+URL Slug:\s+`?(.+?)`?$/); if (slugMatch) { currentL3.slug = slugMatch[1]; } currentL2.children.push(currentL3); l3Count++; continue; } } setStats({ l1: l1Count, l2: l2Count, l3: l3Count }); return root; }; // The actual markdown content const markdownData = `# Restructured GOV.UK Business Taxonomy v5 ## Restructuring Principles **This version applies consistent organizational logic:** 1. **Lifecycle stages** (journey-based): Start your business, Grow/change/exit 2. **Subject domains** (topic-based): Tax, Employment, Environment, Trade, H&S, etc. 3. **Sectors as navigation** (thin layer pointing to main taxonomy) **Key changes from v4:** - Split "Running business: compliance and operations" into distinct subject L1s - Elevated "Environmental duties" to standalone L1 - Restructured "Sector regulations" as navigational signposts - Eliminated content duplication opportunities - Consistent L3 granularity within each L2 --- ## **1. Start your business** L1 Slug: \`/business/start-business\` *Scope: Content ONLY relevant to initial business formation (first 0-12 months). If content applies equally to established businesses, it belongs in a subject section.* ### **1.1 Get started and find support** L2 Slug: \`get-started-find-support\` **Get help and advice for your startup** - URL Slug: \`get-help-advice-startup\` - Sample Content: Find local and national business support, growth hubs, government schemes for entrepreneurs, find a mentor, free business advice services, sector-specific support, startup accelerators and incubators - Mapping Keywords: business advice, business support, startup advice, business mentor, growth hub, government business support, entrepreneur support, startup help **Understand what starting a business involves** - URL Slug: \`understand-starting-business\` - Sample Content: Overview of key steps to start a business, timeline for getting started, common challenges and how to overcome them, legal and financial responsibilities, when to get professional help - Mapping Keywords: start a business, starting a business, business startup, new business, entrepreneur guide, business planning basics **Test and validate your business idea** - URL Slug: \`test-validate-business-idea\` - Sample Content: Market research for startups, validate your business concept, test your idea with customers, competitive analysis, business model development, minimum viable product (MVP) - Mapping Keywords: business idea validation, market research, business concept, test business idea, startup validation, business model ### **1.2 Get funding for your business** L2 Slug: \`get-funding-business\` **Government funding and grants for startups** - URL Slug: \`government-funding-grants-startups\` - Sample Content: Find government startup grants, apply for a Start Up Loan, innovation funding schemes, sector-specific grants, regional development funding - Mapping Keywords: startup funding, government grants, Start Up Loan, business grants, innovation funding **Private investment and loans** - URL Slug: \`private-investment-loans\` - Sample Content: Angel investment and venture capital, bank loans and alternative finance, crowdfunding platforms, equity vs debt funding, preparing for investors - Mapping Keywords: angel investment, venture capital, business loan, equity funding, crowdfunding, private investment **Personal funding and bootstrapping** - URL Slug: \`personal-funding-bootstrapping\` - Sample Content: Self-funding your business, using personal savings responsibly, friends and family funding, part-time business building - Mapping Keywords: self-funding, bootstrap startup, personal funding, startup capital ### **1.3 Choose your business structure** L2 Slug: \`choose-business-structure\` **Compare business structures** - URL Slug: \`compare-business-structures\` - Sample Content: Sole trader vs limited company vs partnership, liability protection differences, tax implications of each structure - Mapping Keywords: business structure, legal structure, sole trader vs limited company, business types **Set up a limited company** - URL Slug: \`set-up-limited-company\` - Sample Content: Register with Companies House, prepare incorporation documents, choose company name, appoint directors and issue shares, understand director duties - Mapping Keywords: incorporate company, Companies House registration, company formation, director duties **Set up as a sole trader** - URL Slug: \`set-up-sole-trader\` - Sample Content: Register with HMRC for Self Assessment, choose a business name, understand sole trader responsibilities - Mapping Keywords: register sole trader, self-employed, HMRC registration, Self Assessment registration **Set up a partnership** - URL Slug: \`set-up-partnership\` - Sample Content: Create partnership agreement, general partnerships vs LLPs, partner responsibilities and liability - Mapping Keywords: partnership, LLP, limited liability partnership, partnership agreement **Charities and social enterprises** - URL Slug: \`charities-social-enterprises\` - Sample Content: Set up and register a charity, Community Interest Company (CIC), charitable purposes, social enterprise structures - Mapping Keywords: charity registration, CIC, Community Interest Company, social enterprise ### **1.4 Essential first-year setup** L2 Slug: \`essential-first-year-setup\` *Note: This section contains ONLY startup-specific setup. Ongoing compliance (like annual accounts, ongoing PAYE) belongs in subject sections.* **Open a business bank account** - URL Slug: \`open-business-bank-account\` - Sample Content: Choose business banking options, required documents for different business structures, compare business accounts - Mapping Keywords: business bank account, business banking, startup banking **Set up business accounting** - URL Slug: \`set-up-business-accounting\` - Sample Content: Basic bookkeeping principles, choose accounting software, record-keeping for tax, Making Tax Digital basics - Mapping Keywords: business accounting, bookkeeping, accounting software, business records **Register for business taxes** - URL Slug: \`register-business-taxes\` - Sample Content: Register for Corporation Tax, VAT registration threshold, PAYE for first employees, tax deadlines - Mapping Keywords: business tax registration, Corporation Tax, VAT registration, PAYE registration **Get business insurance** - URL Slug: \`get-business-insurance\` - Sample Content: Compulsory vs optional business insurance, employers' liability, public liability, professional indemnity - Mapping Keywords: business insurance, employers liability, public liability, professional indemnity **Find business premises or work from home** - URL Slug: \`find-business-premises-work-from-home\` - Sample Content: Commercial property options, working from home rules, planning permission, business rates, virtual offices - Mapping Keywords: business premises, commercial property, work from home, business lease **Get business licences and permits** - URL Slug: \`get-business-licences-permits\` - Sample Content: Check if you need licences, use the licence finder tool, sector-specific requirements, local authority permits - Mapping Keywords: business licence, operating licence, business permits, licence finder --- ## **2. Business tax and reporting** L1 Slug: \`/business/tax-reporting\` *Scope: ALL business tax obligations, ongoing compliance, filing requirements* ### **2.1 Corporation Tax** L2 Slug: \`corporation-tax\` **File your Company Tax Return** - URL Slug: \`file-company-tax-return\` - Sample Content: Prepare Company Tax Return (CT600), filing deadlines, required records, digital filing - Mapping Keywords: corporation tax, company tax return, CT600, file company tax **Calculate Corporation Tax** - URL Slug: \`calculate-corporation-tax\` - Sample Content: Understand taxable profits, corporation tax rates, calculate tax liability, marginal relief, advanced corporation tax - Mapping Keywords: calculate corporation tax, taxable profits, corporation tax rates, tax calculation **Pay Corporation Tax** - URL Slug: \`pay-corporation-tax\` - Sample Content: Payment deadlines, quarterly instalments for large companies, late payment penalties, payment methods - Mapping Keywords: pay corporation tax, corporation tax payment, tax deadline **Corporation Tax reliefs and deductions** - URL Slug: \`corporation-tax-reliefs-deductions\` - Sample Content: Research and Development (R&D) tax relief, capital allowances, patent box, creative industry tax reliefs - Mapping Keywords: R&D tax relief, capital allowances, patent box, corporation tax deductions ### **2.2 VAT** L2 Slug: \`vat\` **Register for VAT** - URL Slug: \`register-vat\` - Sample Content: VAT registration threshold, voluntary registration, register online, effective date of registration - Mapping Keywords: VAT registration, VAT threshold, register for VAT **Submit VAT Returns** - URL Slug: \`submit-vat-returns\` - Sample Content: Complete VAT Return (VAT 100), Making Tax Digital for VAT, filing deadlines, pay VAT - Mapping Keywords: VAT Return, MTD VAT, submit VAT, VAT 100 **Charge and reclaim VAT** - URL Slug: \`charge-reclaim-vat\` - Sample Content: Standard, reduced and zero rates, calculate VAT, reclaim VAT on purchases, exempt and outside scope supplies - Mapping Keywords: charge VAT, reclaim VAT, VAT rates, input tax **VAT schemes** - URL Slug: \`vat-schemes\` - Sample Content: Flat Rate Scheme, Cash Accounting Scheme, Annual Accounting Scheme, retail schemes - Mapping Keywords: Flat Rate VAT, Cash Accounting, Annual Accounting, VAT schemes **International VAT** - URL Slug: \`international-vat\` - Sample Content: VAT on imports and exports, EORI number, customs declarations, VAT MOSS, Northern Ireland Protocol - Mapping Keywords: import VAT, export VAT, EORI, customs VAT, Northern Ireland VAT ### **2.3 PAYE and payroll** L2 Slug: \`paye-payroll\` **Register as an employer** - URL Slug: \`register-employer\` - Sample Content: Register for PAYE before first payday, get employer PAYE reference, set up payroll - Mapping Keywords: register PAYE, employer registration, PAYE reference **Run payroll** - URL Slug: \`run-payroll\` - Sample Content: Calculate PAYE and National Insurance, payroll software, Real Time Information (RTI), Full Payment Submission (FPS) - Mapping Keywords: run payroll, calculate PAYE, RTI, FPS, payroll processing **Pay and report to HMRC** - URL Slug: \`pay-report-hmrc\` - Sample Content: Pay PAYE and NICs monthly, quarterly payments for small employers, payment deadlines, late payment penalties - Mapping Keywords: pay PAYE, payment deadline, HMRC payment **Year-end payroll** - URL Slug: \`year-end-payroll\` - Sample Content: P60 forms, Employer Payment Summary (EPS), final RTI submissions, payroll year-end process - Mapping Keywords: P60, year-end payroll, EPS, payroll closing **Statutory payments** - URL Slug: \`statutory-payments\` - Sample Content: Statutory Sick Pay (SSP), Statutory Maternity Pay (SMP), Statutory Paternity Pay (SPP), reclaim statutory payments - Mapping Keywords: SSP, SMP, statutory payments, maternity pay ### **2.4 Self Assessment** L2 Slug: \`self-assessment\` **Register for Self Assessment** - URL Slug: \`register-self-assessment\` - Sample Content: Who needs to file Self Assessment, register as self-employed, get your UTR number - Mapping Keywords: Self Assessment registration, UTR number, self-employed registration **File your Self Assessment tax return** - URL Slug: \`file-self-assessment-return\` - Sample Content: Complete SA100 tax return, deadlines for online and paper filing, late filing penalties - Mapping Keywords: Self Assessment return, SA100, file tax return, self-assessment deadline **Pay your Self Assessment tax bill** - URL Slug: \`pay-self-assessment-tax\` - Sample Content: Payment deadlines, payments on account, balancing payment, late payment interest - Mapping Keywords: pay self assessment, tax bill payment, payment on account **Self Assessment for partnerships** - URL Slug: \`self-assessment-partnerships\` - Sample Content: Partnership Tax Return (SA800), partner tax responsibilities, profit distribution - Mapping Keywords: partnership tax, SA800, partnership return --- ## **3. Employing people** L1 Slug: \`/business/employing-people\` *Scope: Employment law, workplace rights, hiring and managing staff* ### **3.1 Recruiting and hiring** L2 Slug: \`recruiting-hiring\` **Advertise a job and recruit fairly** - URL Slug: \`advertise-job-recruit-fairly\` - Sample Content: Write job descriptions, advertise vacancies, discrimination laws in recruitment, interview fairly - Mapping Keywords: job advert, recruitment, hire staff, fair recruitment **Check someone's right to work** - URL Slug: \`check-right-to-work\` - Sample Content: Right to work checks, acceptable documents, online checking service, avoid discrimination - Mapping Keywords: right to work, right to work check, work visa check **Offer employment and get new employee information** - URL Slug: \`offer-employment-get-information\` - Sample Content: Make job offers, collect new starter information, P45 or starter checklist, DBS checks - Mapping Keywords: job offer, new starter, P45, new employee information **Employ non-UK workers** - URL Slug: \`employ-non-uk-workers\` - Sample Content: Sponsor licence requirements, points-based immigration system, sponsorship duties - Mapping Keywords: sponsor licence, employ visa workers, sponsorship, immigration compliance ### **3.2 Employment contracts and rights** L2 Slug: \`employment-contracts-rights\` **Provide written terms of employment** - URL Slug: \`written-employment-terms\` - Sample Content: Employment contracts, written statement of particulars, what to include, timing requirements - Mapping Keywords: employment contract, written terms, employment particulars **Minimum wage and pay** - URL Slug: \`minimum-wage-pay\` - Sample Content: National Minimum Wage and National Living Wage rates, pay workers correctly, payslip requirements - Mapping Keywords: minimum wage, national living wage, pay rates, payslips **Working hours and time off** - URL Slug: \`working-hours-time-off\` - Sample Content: Working Time Regulations, maximum weekly hours, rest breaks, night work limits - Mapping Keywords: working hours, working time, rest breaks, maximum hours **Holiday entitlement** - URL Slug: \`holiday-entitlement\` - Sample Content: Calculate statutory holiday entitlement, part-time and irregular hours, carry over unused leave - Mapping Keywords: holiday entitlement, annual leave, statutory holiday, holiday pay **Flexible working requests** - URL Slug: \`flexible-working-requests\` - Sample Content: Employee right to request flexible working, consider requests, approval and refusal grounds - Mapping Keywords: flexible working, flexible working request, work from home rights ### **3.3 Managing employees** L2 Slug: \`managing-employees\` **Performance management** - URL Slug: \`performance-management\` - Sample Content: Set performance objectives, conduct appraisals, address underperformance, capability procedures - Mapping Keywords: performance management, staff appraisal, capability procedure **Disciplinary procedures** - URL Slug: \`disciplinary-procedures\` - Sample Content: Acas Code of Practice, investigate issues, hold disciplinary meetings, warnings and dismissal - Mapping Keywords: disciplinary procedure, disciplinary action, Acas code, warnings **Handle grievances** - URL Slug: \`handle-grievances\` - Sample Content: Grievance procedures, investigate complaints, grievance meetings, appeal process - Mapping Keywords: grievance procedure, employee complaint, handle grievance **Equality and discrimination** - URL Slug: \`equality-discrimination\` - Sample Content: Equality Act 2010, protected characteristics, prevent discrimination, reasonable adjustments - Mapping Keywords: equality, discrimination, Equality Act, protected characteristics **Staff training and development** - URL Slug: \`staff-training-development\` - Sample Content: Identify training needs, provide development opportunities, apprenticeships, training funding - Mapping Keywords: staff training, employee development, training opportunities ### **3.4 Ending employment** L2 Slug: \`ending-employment\` **Dismissal procedures** - URL Slug: \`dismissal-procedures\` - Sample Content: Fair dismissal reasons, follow fair procedures, notice periods, unfair dismissal risks - Mapping Keywords: dismissal, terminate employment, fair dismissal, notice period **Redundancy** - URL Slug: \`redundancy\` - Sample Content: Redundancy process, consultation requirements, redundancy pay calculation, selection criteria - Mapping Keywords: redundancy, redundancy pay, redundancy process, collective consultation **Final pay and leaver documentation** - URL Slug: \`final-pay-leaver-documentation\` - Sample Content: Calculate final pay, issue P45, return of company property, references - Mapping Keywords: final pay, P45, leaver process, employment reference --- ## **4. Health, safety and wellbeing** L1 Slug: \`/business/health-safety-wellbeing\` *Scope: Workplace H&S duties, wellbeing, occupational health* ### **4.1 Health and safety responsibilities** L2 Slug: \`health-safety-responsibilities\` **Understand your health and safety duties** - URL Slug: \`understand-health-safety-duties\` - Sample Content: Employer health and safety responsibilities, Health and Safety at Work Act, duty of care - Mapping Keywords: health and safety, employer duties, H&S responsibilities, duty of care **Appoint health and safety representatives** - URL Slug: \`appoint-health-safety-representatives\` - Sample Content: Health and safety representatives, safety committees, consultation with employees - Mapping Keywords: safety representative, safety committee, H&S consultation **Get employers' liability insurance** - URL Slug: \`employers-liability-insurance\` - Sample Content: Compulsory employers' liability insurance, minimum cover amount, display certificate - Mapping Keywords: employers liability insurance, compulsory insurance, EL insurance ### **4.2 Risk assessments and policies** L2 Slug: \`risk-assessments-policies\` **Complete risk assessments** - URL Slug: \`complete-risk-assessments\` - Sample Content: Identify hazards, assess risks, implement controls, review regularly, record findings - Mapping Keywords: risk assessment, hazard identification, H&S risk, workplace safety **Write a health and safety policy** - URL Slug: \`write-health-safety-policy\` - Sample Content: Health and safety policy requirements, policy statement, responsibilities, arrangements - Mapping Keywords: health and safety policy, H&S policy, safety statement **Fire safety** - URL Slug: \`fire-safety\` - Sample Content: Fire risk assessments, fire safety measures, evacuation procedures, fire extinguishers - Mapping Keywords: fire safety, fire risk assessment, fire evacuation, fire safety compliance **First aid at work** - URL Slug: \`first-aid-work\` - Sample Content: First aid requirements, trained first aiders, first aid equipment, accident recording - Mapping Keywords: first aid, first aider, first aid kit, workplace first aid ### **4.3 Workplace hazards** L2 Slug: \`workplace-hazards\` **Control hazardous substances (COSHH)** - URL Slug: \`control-hazardous-substances-coshh\` - Sample Content: COSHH Regulations, assess chemical risks, control exposure, provide PPE, health surveillance - Mapping Keywords: COSHH, hazardous substances, chemical safety, COSHH assessment **Manual handling and ergonomics** - URL Slug: \`manual-handling-ergonomics\` - Sample Content: Manual handling risks, lifting safely, workstation setup, prevent musculoskeletal disorders - Mapping Keywords: manual handling, ergonomics, DSE assessment, lifting safely **Noise at work** - URL Slug: \`noise-work\` - Sample Content: Control noise exposure, noise assessments, hearing protection, exposure limits - Mapping Keywords: noise at work, hearing protection, noise exposure, noise control **Work equipment safety** - URL Slug: \`work-equipment-safety\` - Sample Content: Provision and Use of Work Equipment Regulations (PUWER), maintain equipment, guarding, inspections - Mapping Keywords: PUWER, work equipment, machinery safety, equipment maintenance ### **4.4 Accidents and incidents** L2 Slug: \`accidents-incidents\` **Report accidents and incidents** - URL Slug: \`report-accidents-incidents\` - Sample Content: RIDDOR reporting, serious injuries, dangerous occurrences, report to HSE - Mapping Keywords: RIDDOR, report accident, HSE reporting, workplace accident **Investigate accidents** - URL Slug: \`investigate-accidents\` - Sample Content: Accident investigation procedures, root cause analysis, prevent recurrence - Mapping Keywords: accident investigation, incident analysis, root cause **Accident records and logs** - URL Slug: \`accident-records-logs\` - Sample Content: Maintain accident book, record keeping requirements, data protection - Mapping Keywords: accident book, accident records, H&S records --- ## **5. Environmental duties** L1 Slug: \`/business/environmental-duties\` *Scope: ALL environmental compliance, sustainability, climate reporting* ### **5.1 Waste management** L2 Slug: \`waste-management\` **Duty of care for waste** - URL Slug: \`duty-of-care-waste\` - Sample Content: Waste duty of care, store waste safely, waste transfer notes, authorized waste carriers - Mapping Keywords: waste duty of care, waste transfer note, waste carrier licence **Register as a waste carrier** - URL Slug: \`register-waste-carrier\` - Sample Content: Upper-tier and lower-tier waste carrier registration, exemptions, renew registration - Mapping Keywords: waste carrier registration, waste carrier licence, register waste **Hazardous waste** - URL Slug: \`hazardous-waste\` - Sample Content: Classify hazardous waste, consignment notes, special waste procedures - Mapping Keywords: hazardous waste, special waste, consignment note, hazardous waste disposal **Waste packaging obligations** - URL Slug: \`waste-packaging-obligations\` - Sample Content: Producer responsibility for packaging, packaging waste targets, register with environment agency - Mapping Keywords: packaging waste, producer responsibility, packaging recovery ### **5.2 Emissions and pollution** L2 Slug: \`emissions-pollution\` **Environmental permits** - URL Slug: \`environmental-permits\` - Sample Content: Apply for environmental permits, standard rules permits, bespoke permits, installation permits - Mapping Keywords: environmental permit, pollution permit, installation permit **Air pollution control** - URL Slug: \`air-pollution-control\` - Sample Content: Control industrial emissions, air quality standards, local authority permits - Mapping Keywords: air pollution, emission control, air quality, chimney permits **Water pollution and discharge** - URL Slug: \`water-pollution-discharge\` - Sample Content: Prevent water pollution, discharge consents, trade effluent, groundwater protection - Mapping Keywords: water pollution, discharge consent, trade effluent, water quality **Control noise pollution** - URL Slug: \`control-noise-pollution\` - Sample Content: Noise regulations, noise abatement, planning conditions, noise monitoring - Mapping Keywords: noise pollution, noise abatement, environmental noise ### **5.3 Energy and climate** L2 Slug: \`energy-climate\` **Energy efficiency standards** - URL Slug: \`energy-efficiency-standards\` - Sample Content: Energy Performance Certificates for commercial properties, MEES regulations, energy audits - Mapping Keywords: EPC commercial, MEES, energy efficiency, minimum energy standards **Streamlined Energy and Carbon Reporting (SECR)** - URL Slug: \`streamlined-energy-carbon-reporting\` - Sample Content: SECR reporting requirements, calculate energy use and emissions, annual reports - Mapping Keywords: SECR, carbon reporting, energy reporting, emissions reporting **Climate Change Agreements** - URL Slug: \`climate-change-agreements\` - Sample Content: CCA eligibility, energy-intensive industries, Climate Change Levy discount, meet targets - Mapping Keywords: Climate Change Agreement, CCA, CCL discount, energy intensive **Carbon pricing and emissions trading** - URL Slug: \`carbon-pricing-emissions-trading\` - Sample Content: UK Emissions Trading Scheme (UK ETS), carbon allowances, compliance obligations - Mapping Keywords: UK ETS, emissions trading, carbon allowances, ETS compliance --- ## **6. Intellectual property** L1 Slug: \`/business/intellectual-property\` *Scope: All IP types, protection, licensing, enforcement* ### **6.1 Patents** L2 Slug: \`patents\` **Apply for a patent** - URL Slug: \`apply-for-patent\` - Sample Content: Patent application process, patent search, file with IPO, patent examination - Mapping Keywords: apply for patent, patent application, IPO patent, patent registration **Maintain your patent** - URL Slug: \`maintain-patent\` - Sample Content: Patent renewal fees, keep patent in force, patent lapse - Mapping Keywords: patent renewal, patent maintenance, renew patent **International patent protection** - URL Slug: \`international-patent-protection\` - Sample Content: Patent Cooperation Treaty (PCT), European patents, file internationally - Mapping Keywords: international patent, PCT, European patent, global patent ### **6.2 Trade marks** L2 Slug: \`trade-marks\` **Register a trade mark** - URL Slug: \`register-trade-mark\` - Sample Content: Trade mark application, search existing marks, choose classes, opposition period - Mapping Keywords: register trade mark, trade mark application, IPO trade mark **Renew your trade mark** - URL Slug: \`renew-trade-mark\` - Sample Content: Trade mark renewal every 10 years, renewal deadlines, late renewal - Mapping Keywords: trade mark renewal, renew trade mark, TM renewal **International trade marks** - URL Slug: \`international-trade-marks\` - Sample Content: Madrid Protocol, EU trade marks after Brexit, file internationally - Mapping Keywords: international trade mark, Madrid Protocol, EU trade mark ### **6.3 Copyright and designs** L2 Slug: \`copyright-designs\` **Copyright protection** - URL Slug: \`copyright-protection\` - Sample Content: Automatic copyright protection, copyright ownership, duration of copyright - Mapping Keywords: copyright, copyright protection, copyright ownership **Register a design** - URL Slug: \`register-design\` - Sample Content: Registered designs, design protection, apply for design registration - Mapping Keywords: register design, design registration, design protection **Unregistered design rights** - URL Slug: \`unregistered-design-rights\` - Sample Content: Automatic design rights, design right protection, duration - Mapping Keywords: unregistered design, design right, automatic design protection ### **6.4 Licensing and enforcement** L2 Slug: \`licensing-enforcement\` **License your IP** - URL Slug: \`license-ip\` - Sample Content: Licensing agreements, license terms, royalties, exclusive vs non-exclusive - Mapping Keywords: IP licensing, license agreement, royalties, license IP **Enforce your IP rights** - URL Slug: \`enforce-ip-rights\` - Sample Content: IP infringement, cease and desist, litigation, IP disputes - Mapping Keywords: IP enforcement, IP infringement, protect IP, IP dispute --- ## **7. International trade** L1 Slug: \`/business/international-trade\` *Scope: Import, export, customs, trade compliance* ### **7.1 Getting started with trade** L2 Slug: \`getting-started-trade\` **Understand import and export basics** - URL Slug: \`import-export-basics\` - Sample Content: Trading internationally, import and export requirements, customs basics - Mapping Keywords: import export, international trade, trading internationally **Get an EORI number** - URL Slug: \`get-eori-number\` - Sample Content: Apply for EORI number, what EORI is used for, customs registration - Mapping Keywords: EORI number, EORI registration, customs number **Choose an incoterm** - URL Slug: \`choose-incoterm\` - Sample Content: Incoterms explained, FOB, CIF, DDP, responsibilities in international trade - Mapping Keywords: incoterms, FOB, CIF, trade terms, shipping terms ### **7.2 Importing goods** L2 Slug: \`importing-goods\` **Make import declarations** - URL Slug: \`make-import-declarations\` - Sample Content: Customs declarations, import entry, use customs agent, Customs Handling of Import and Export Freight (CHIEF) - Mapping Keywords: import declaration, customs declaration, CHIEF, import entry **Pay import duty and VAT** - URL Slug: \`pay-import-duty-vat\` - Sample Content: Calculate import duty, import VAT, duty suspension, postponed VAT accounting - Mapping Keywords: import duty, import VAT, customs duty, duty payment **Import licences and restrictions** - URL Slug: \`import-licences-restrictions\` - Sample Content: Restricted goods, import licences, controlled goods, sanctions - Mapping Keywords: import licence, controlled goods, restricted imports, import restrictions **Commodity codes and tariffs** - URL Slug: \`commodity-codes-tariffs\` - Sample Content: Find commodity codes, UK Trade Tariff, duty rates, classify goods - Mapping Keywords: commodity code, HS code, trade tariff, classify goods ### **7.3 Exporting goods** L2 Slug: \`exporting-goods\` **Make export declarations** - URL Slug: \`make-export-declarations\` - Sample Content: Export declarations, use customs agent, export entry, goods vehicle movement service - Mapping Keywords: export declaration, customs export, export entry, GVMS **Export licences and controls** - URL Slug: \`export-licences-controls\` - Sample Content: Strategic export controls, military goods, dual-use items, export licensing - Mapping Keywords: export licence, strategic export, export controls, OGEL **Customs procedures for exports** - URL Slug: \`customs-procedures-exports\` - Sample Content: Customs clearance, export relief, temporary exports, returned goods - Mapping Keywords: export customs, customs clearance, export procedures **Get paid for exports** - URL Slug: \`get-paid-exports\` - Sample Content: Payment methods for exports, letters of credit, export finance, credit insurance - Mapping Keywords: export payment, letter of credit, export finance, trade finance ### **7.4 Trading with Northern Ireland** L2 Slug: \`trading-northern-ireland\` **Move goods between GB and NI** - URL Slug: \`move-goods-gb-ni\` - Sample Content: Northern Ireland Protocol, GB to NI movements, Trader Support Service - Mapping Keywords: GB NI trade, Northern Ireland Protocol, Trader Support Service **UK Internal Market Scheme** - URL Slug: \`uk-internal-market-scheme\` - Sample Content: UKIMS authorisation, not at risk goods, moving goods to NI - Mapping Keywords: UKIMS, UK Internal Market, not at risk goods --- ## **8. Property and premises** L1 Slug: \`/business/property-premises\` *Scope: Commercial property, planning, building regs, rates* ### **8.1 Commercial property** L2 Slug: \`commercial-property\` **Lease commercial property** - URL Slug: \`lease-commercial-property\` - Sample Content: Commercial lease agreements, lease terms, rent reviews, break clauses - Mapping Keywords: commercial lease, business lease, commercial property lease **Buy commercial property** - URL Slug: \`buy-commercial-property\` - Sample Content: Purchase commercial property, due diligence, property searches, SDLT - Mapping Keywords: buy commercial property, commercial property purchase, SDLT commercial **Rent out commercial property** - URL Slug: \`rent-out-commercial-property\` - Sample Content: Commercial landlord responsibilities, business rates, property management - Mapping Keywords: commercial landlord, rent commercial property, commercial letting ### **8.2 Planning and building** L2 Slug: \`planning-building\` **Get planning permission** - URL Slug: \`get-planning-permission\` - Sample Content: Apply for planning permission, permitted development, change of use - Mapping Keywords: planning permission, planning application, change of use **Building regulations approval** - URL Slug: \`building-regulations-approval\` - Sample Content: Building Control approval, building regs compliance, completion certificates - Mapping Keywords: building regulations, Building Control, building regs approval **Listed buildings and conservation areas** - URL Slug: \`listed-buildings-conservation-areas\` - Sample Content: Listed building consent, conservation area restrictions, heritage protection - Mapping Keywords: listed building, conservation area, listed building consent ### **8.3 Business rates and charges** L2 Slug: \`business-rates-charges\` **Pay business rates** - URL Slug: \`pay-business-rates\` - Sample Content: Business rates liability, rateable value, business rates bills, payment - Mapping Keywords: business rates, business rates payment, rateable value **Business rates relief** - URL Slug: \`business-rates-relief\` - Sample Content: Small business rates relief, rural rate relief, retail relief, hardship relief - Mapping Keywords: business rates relief, small business relief, rates relief --- ## **9. Contracts and disputes** L1 Slug: \`/business/contracts-disputes\` *Scope: Commercial contracts, B2B/B2C law, dispute resolution* ### **9.1 Business contracts** L2 Slug: \`business-contracts\` **Create business contracts** - URL Slug: \`create-business-contracts\` - Sample Content: Essential contract terms, contract formation, written agreements, standard terms - Mapping Keywords: business contract, contract terms, commercial contract **Terms and conditions for B2B sales** - URL Slug: \`terms-conditions-b2b\` - Sample Content: B2B terms, standard terms of business, liability clauses, payment terms - Mapping Keywords: B2B terms, business terms, terms of business, standard terms **Unfair contract terms** - URL Slug: \`unfair-contract-terms\` - Sample Content: Unfair Terms in Consumer Contracts Regulations, fairness test, excluded terms - Mapping Keywords: unfair terms, contract fairness, unfair contract terms ### **9.2 Consumer rights** L2 Slug: \`consumer-rights\` **Consumer Rights Act compliance** - URL Slug: \`consumer-rights-act-compliance\` - Sample Content: Goods to be of satisfactory quality, fit for purpose, as described, consumer remedies - Mapping Keywords: Consumer Rights Act, consumer law, goods quality, consumer remedies **Distance selling and online sales** - URL Slug: \`distance-selling-online-sales\` - Sample Content: Consumer Contracts Regulations, cancellation rights, refund policy, pre-contract information - Mapping Keywords: distance selling, online selling, cooling-off period, cancellation rights **Product safety and recalls** - URL Slug: \`product-safety-recalls\` - Sample Content: General Product Safety Regulations, product liability, safety standards, product recalls - Mapping Keywords: product safety, product recall, product liability, safety regulations ### **9.3 Resolving disputes** L2 Slug: \`resolving-disputes\` **Alternative dispute resolution** - URL Slug: \`alternative-dispute-resolution\` - Sample Content: Mediation, arbitration, ADR schemes, avoid court - Mapping Keywords: ADR, mediation, arbitration, dispute resolution **Business debt recovery** - URL Slug: \`business-debt-recovery\` - Sample Content: Recover unpaid invoices, late payment interest, formal demand, county court - Mapping Keywords: debt recovery, unpaid invoice, late payment, debt collection **Commercial litigation** - URL Slug: \`commercial-litigation\` - Sample Content: Business Court, breach of contract claims, litigation process - Mapping Keywords: commercial litigation, business court, breach of contract --- ## **10. Insolvency and business exit** L1 Slug: \`/business/insolvency-exit\` *Scope: Closing, selling, insolvency processes* ### **10.1 Close your business** L2 Slug: \`close-business\` **Close a limited company** - URL Slug: \`close-limited-company\` - Sample Content: Strike off a company, voluntary strike-off, dissolve company, final accounts - Mapping Keywords: close limited company, strike off, dissolve company, company closure **Stop being self-employed** - URL Slug: \`stop-self-employed\` - Sample Content: Tell HMRC you've stopped trading, final Self Assessment return, final tax bill - Mapping Keywords: stop self-employed, stop trading, close sole trader **Close a partnership** - URL Slug: \`close-partnership\` - Sample Content: Dissolve partnership, notify HMRC, final accounts, partnership closure - Mapping Keywords: dissolve partnership, close partnership, partnership closure ### **10.2 Sell your business** L2 Slug: \`sell-business\` **Prepare your business for sale** - URL Slug: \`prepare-business-sale\` - Sample Content: Business valuation, due diligence preparation, financial records, legal readiness - Mapping Keywords: sell business, business valuation, due diligence, business sale **Tax on selling a business** - URL Slug: \`tax-selling-business\` - Sample Content: Capital Gains Tax on business sale, Business Asset Disposal Relief, rollover relief - Mapping Keywords: CGT business sale, Business Asset Disposal Relief, entrepreneurs relief ### **10.3 Company insolvency** L2 Slug: \`company-insolvency\` **Voluntary liquidation** - URL Slug: \`voluntary-liquidation\` - Sample Content: Members' Voluntary Liquidation (MVL), Creditors' Voluntary Liquidation (CVL), liquidation process - Mapping Keywords: MVL, CVL, voluntary liquidation, liquidate company **Administration and restructuring** - URL Slug: \`administration-restructuring\` - Sample Content: Company administration, restructuring plans, Company Voluntary Arrangement (CVA) - Mapping Keywords: administration, CVA, company restructuring, insolvency administration **Compulsory liquidation** - URL Slug: \`compulsory-liquidation\` - Sample Content: Winding-up petition, court liquidation, Official Receiver - Mapping Keywords: compulsory liquidation, winding up, liquidation order **Director duties in insolvency** - URL Slug: \`director-duties-insolvency\` - Sample Content: Directors' responsibilities when company insolvent, wrongful trading, fraudulent trading - Mapping Keywords: director insolvency duties, wrongful trading, insolvent company ### **10.4 Personal insolvency** L2 Slug: \`personal-insolvency\` **Bankruptcy** - URL Slug: \`bankruptcy\` - Sample Content: Apply for bankruptcy, bankruptcy process, bankruptcy restrictions, discharge - Mapping Keywords: bankruptcy, bankrupt, bankruptcy application, bankruptcy discharge **Individual Voluntary Arrangements** - URL Slug: \`individual-voluntary-arrangements\` - Sample Content: IVA process, propose IVA to creditors, IVA payments, IVA vs bankruptcy - Mapping Keywords: IVA, Individual Voluntary Arrangement, debt arrangement --- ## **11. Data protection and cyber security** L1 Slug: \`/business/data-cyber-security\` *Scope: GDPR, data protection, cyber security duties* ### **11.1 UK GDPR compliance** L2 Slug: \`uk-gdpr-compliance\` **Understand UK GDPR** - URL Slug: \`understand-uk-gdpr\` - Sample Content: Data protection principles, lawful basis for processing, controller vs processor - Mapping Keywords: UK GDPR, data protection, GDPR compliance, personal data **Register with ICO** - URL Slug: \`register-ico\` - Sample Content: Data protection fee, register as data controller, ICO registration, annual fee - Mapping Keywords: ICO registration, data protection fee, register ICO **Individual rights under GDPR** - URL Slug: \`individual-rights-gdpr\` - Sample Content: Right to access (SAR), right to erasure, right to rectification, data portability - Mapping Keywords: subject access request, SAR, right to erasure, GDPR rights **Data breach reporting** - URL Slug: \`data-breach-reporting\` - Sample Content: Report data breaches to ICO, 72-hour rule, notify individuals, breach assessment - Mapping Keywords: data breach, breach reporting, ICO breach, notify ICO ### **11.2 Data protection practices** L2 Slug: \`data-protection-practices\` **Create privacy notices** - URL Slug: \`create-privacy-notices\` - Sample Content: Privacy policy requirements, fair processing information, transparency - Mapping Keywords: privacy notice, privacy policy, fair processing, transparency **Data processing agreements** - URL Slug: \`data-processing-agreements\` - Sample Content: Processor agreements, Article 28 requirements, processor obligations - Mapping Keywords: data processing agreement, DPA, processor contract, Article 28 **Transfer data internationally** - URL Slug: \`transfer-data-internationally\` - Sample Content: International data transfers, adequacy decisions, standard contractual clauses, UK GDPR transfers - Mapping Keywords: international transfer, adequacy, standard contractual clauses, data transfer **Data protection impact assessments** - URL Slug: \`data-protection-impact-assessments\` - Sample Content: When to conduct DPIA, DPIA process, high-risk processing - Mapping Keywords: DPIA, data protection impact assessment, privacy impact assessment ### **11.3 Cyber security** L2 Slug: \`cyber-security\` **Implement cyber security measures** - URL Slug: \`implement-cyber-security-measures\` - Sample Content: Cyber Essentials certification, protect against cyber threats, security best practices - Mapping Keywords: cyber security, Cyber Essentials, cyber protection, cyber threat **Prevent cyber attacks** - URL Slug: \`prevent-cyber-attacks\` - Sample Content: Phishing, malware, ransomware protection, employee training, security awareness - Mapping Keywords: prevent cyber attack, phishing, ransomware, malware protection **Report cyber incidents** - URL Slug: \`report-cyber-incidents\` - Sample Content: Report to Action Fraud, National Cyber Security Centre, incident response - Mapping Keywords: cyber incident, report cyber crime, Action Fraud, NCSC --- ## **12. Business growth and change** L1 Slug: \`/business/growth-change\` *Scope: Scaling, changing structure, mergers, governance* ### **12.1 Scale your business** L2 Slug: \`scale-business\` **Growth strategies and planning** - URL Slug: \`growth-strategies-planning\` - Sample Content: Develop growth strategy, market expansion, scale operations, growth funding - Mapping Keywords: business growth, growth strategy, scale business, expansion **Access growth funding** - URL Slug: \`access-growth-funding\` - Sample Content: Growth finance, venture capital, private equity, scale-up investment - Mapping Keywords: growth funding, scale-up funding, growth investment, VC funding **Franchising your business** - URL Slug: \`franchising-business\` - Sample Content: Franchise your business, franchise agreements, franchisee selection - Mapping Keywords: franchise business, franchising, become franchisor **Export for growth** - URL Slug: \`export-growth\` - Sample Content: Export strategy, international expansion, export support, new markets - Mapping Keywords: export strategy, international growth, export expansion ### **12.2 Change company structure** L2 Slug: \`change-company-structure\` **Change from sole trader to limited company** - URL Slug: \`change-sole-trader-limited-company\` - Sample Content: Incorporate existing business, transfer business to company, tax implications - Mapping Keywords: incorporate sole trader, change to limited company, incorporation **Group structures and subsidiaries** - URL Slug: \`group-structures-subsidiaries\` - Sample Content: Set up subsidiary companies, parent company structure, group accounting - Mapping Keywords: subsidiary, parent company, group structure, holding company **Merge or acquire businesses** - URL Slug: \`merge-acquire-businesses\` - Sample Content: Mergers and acquisitions, due diligence, integration, competition law - Mapping Keywords: M&A, merger, acquisition, business acquisition ### **12.3 Corporate governance** L2 Slug: \`corporate-governance\` **Board of directors** - URL Slug: \`board-directors\` - Sample Content: Board composition, director appointments, board meetings, corporate governance codes - Mapping Keywords: board of directors, board composition, corporate governance **Shareholder rights and agreements** - URL Slug: \`shareholder-rights-agreements\` - Sample Content: Shareholders' agreement, voting rights, dividend rights, shareholder protection - Mapping Keywords: shareholders agreement, shareholder rights, voting rights **Company secretary duties** - URL Slug: \`company-secretary-duties\` - Sample Content: Company secretary responsibilities, statutory registers, Companies House filing - Mapping Keywords: company secretary, secretary duties, statutory registers --- ## **13. Sector-specific regulations** L1 Slug: \`/business/sector-regulations\` *Scope: Navigational layer pointing to sector-specific compliance requirements* ### **13.1 Food and hospitality** L2 Slug: \`food-hospitality\` **Food safety and hygiene** - URL Slug: \`food-safety-hygiene\` - Sample Content: Register food business, food hygiene ratings, HACCP, food safety regulations - Mapping Keywords: food safety, food hygiene, HACCP, food hygiene rating **Alcohol licensing** - URL Slug: \`alcohol-licensing\` - Sample Content: Premises licence, personal licence, licensing objectives, temporary events - Mapping Keywords: alcohol licence, premises licence, personal licence, TEN **Allergen information** - URL Slug: \`allergen-information\` - Sample Content: Allergen labelling, Natasha's Law, allergen information for consumers - Mapping Keywords: allergen information, Natasha's Law, allergen labelling, food allergens ### **13.2 Construction and building** L2 Slug: \`construction-building\` **Construction industry scheme (CIS)** - URL Slug: \`construction-industry-scheme\` - Sample Content: Register for CIS, CIS deductions, subcontractor and contractor obligations - Mapping Keywords: CIS, Construction Industry Scheme, CIS registration, CIS deductions **CDM regulations** - URL Slug: \`cdm-regulations\` - Sample Content: Construction (Design and Management) Regulations, principal designer, principal contractor - Mapping Keywords: CDM regulations, principal designer, principal contractor, CDM compliance **Building warranty and insurance** - URL Slug: \`building-warranty-insurance\` - Sample Content: New build warranties, structural defects insurance, NHBC, Buildmark - Mapping Keywords: building warranty, NHBC, new build insurance, structural warranty ### **13.3 Financial services** L2 Slug: \`financial-services\` **FCA authorisation** - URL Slug: \`fca-authorisation\` - Sample Content: Apply for FCA authorisation, regulated activities, fit and proper test - Mapping Keywords: FCA authorisation, FCA registration, financial services authorisation **Anti-money laundering (AML)** - URL Slug: \`anti-money-laundering\` - Sample Content: Money Laundering Regulations, customer due diligence, suspicious activity reports - Mapping Keywords: AML, anti-money laundering, customer due diligence, SAR **Consumer Duty** - URL Slug: \`consumer-duty\` - Sample Content: FCA Consumer Duty, consumer outcomes, fair value, consumer support - Mapping Keywords: Consumer Duty, FCA Consumer Duty, consumer outcomes ### **13.4 Healthcare and social care** L2 Slug: \`healthcare-social-care\` **CQC registration** - URL Slug: \`cqc-registration\` - Sample Content: Register with Care Quality Commission, regulated activities, CQC compliance - Mapping Keywords: CQC registration, Care Quality Commission, healthcare registration **Professional registration** - URL Slug: \`professional-registration\` - Sample Content: Register with professional bodies, NMC, HCPC, GMC registration - Mapping Keywords: professional registration, NMC, HCPC, GMC, healthcare professional **Medicines and medical devices** - URL Slug: \`medicines-medical-devices\` - Sample Content: MHRA regulations, prescription medicines, medical device registration - Mapping Keywords: MHRA, medicines regulation, medical devices, prescription medicines ### **13.5 Education and childcare** L2 Slug: \`education-childcare\` **Ofsted registration for childcare** - URL Slug: \`ofsted-registration-childcare\` - Sample Content: Register childcare with Ofsted, Early Years Register, Childcare Register - Mapping Keywords: Ofsted registration, childcare registration, Early Years Register **Safeguarding in education** - URL Slug: \`safeguarding-education\` - Sample Content: DBS checks for education, safeguarding policies, Keeping Children Safe in Education - Mapping Keywords: safeguarding, DBS check, Keeping Children Safe, child protection **Education standards and inspections** - URL Slug: \`education-standards-inspections\` - Sample Content: Ofsted inspections, education standards, school registration - Mapping Keywords: Ofsted inspection, education standards, school registration ### **13.6 Transport and logistics** L2 Slug: \`transport-logistics\` **Operator licensing** - URL Slug: \`operator-licensing\` - Sample Content: Goods vehicle operator licence, transport manager CPC, operator compliance - Mapping Keywords: operator licence, O-licence, goods vehicle licence, transport manager **Drivers' hours and tachograph** - URL Slug: \`drivers-hours-tachograph\` - Sample Content: Drivers' hours rules, tachograph regulations, digital tachograph, working time - Mapping Keywords: drivers hours, tachograph, working time directive, driving time **Dangerous goods transport** - URL Slug: \`dangerous-goods-transport\` - Sample Content: ADR regulations, dangerous goods safety adviser, hazardous materials transport - Mapping Keywords: ADR, dangerous goods, DGSA, hazardous transport ### **13.7 Retail and e-commerce** L2 Slug: \`retail-ecommerce\` **Retail licensing** - URL Slug: \`retail-licensing\` - Sample Content: Shop licensing requirements, Sunday trading, late night levy - Mapping Keywords: retail licence, shop licence, Sunday trading **Product labelling and information** - URL Slug: \`product-labelling-information\` - Sample Content: Product labelling regulations, CE marking, UKCA marking, product information - Mapping Keywords: product labelling, CE marking, UKCA, product information **E-commerce regulations** - URL Slug: \`ecommerce-regulations\` - Sample Content: E-Commerce Regulations, website terms, cookies policy, online trading - Mapping Keywords: e-commerce, online selling, website regulations, e-commerce law ### **13.8 Agriculture and farming** L2 Slug: \`agriculture-farming\` **Register as a farming business** - URL Slug: \`register-farming-business\` - Sample Content: Register with Rural Payments Agency, CPH number, farming compliance - Mapping Keywords: farming registration, RPA, CPH number, farm business **Farming subsidies and schemes** - URL Slug: \`farming-subsidies-schemes\` - Sample Content: Environmental Land Management schemes, Sustainable Farming Incentive, farm payments - Mapping Keywords: farm subsidies, ELMS, SFI, farming grants **Animal health and welfare** - URL Slug: \`animal-health-welfare\` - Sample Content: Animal welfare regulations, livestock identification, disease control - Mapping Keywords: animal welfare, livestock, animal health, farm animals **Pesticides and fertilisers** - URL Slug: \`pesticides-fertilisers\` - Sample Content: Use pesticides safely, BASIS certification, fertiliser regulations - Mapping Keywords: pesticides, fertilisers, BASIS, pesticide regulations ### **13.9 Professional services** L2 Slug: \`professional-services\` **Legal services regulation** - URL Slug: \`legal-services-regulation\` - Sample Content: Solicitors Regulation Authority, practising certificates, legal professional regulation - Mapping Keywords: SRA, legal services, solicitor regulation, practising certificate **Accountancy regulation** - URL Slug: \`accountancy-regulation\` - Sample Content: Professional accountancy bodies, practising licence, audit registration - Mapping Keywords: accountancy regulation, ICAEW, ACCA, practising licence **Professional indemnity insurance** - URL Slug: \`professional-indemnity-insurance\` - Sample Content: PI insurance requirements, professional indemnity cover, claims-made insurance - Mapping Keywords: professional indemnity, PI insurance, professional insurance ### **13.10 Creative industries** L2 Slug: \`creative-industries\` **Film and TV tax relief** - URL Slug: \`film-tv-tax-relief\` - Sample Content: Film Tax Relief, High-end Television Tax Relief, creative industry tax credits - Mapping Keywords: Film Tax Relief, TV tax relief, creative tax credits **Theatre and orchestral tax relief** - URL Slug: \`theatre-orchestral-tax-relief\` - Sample Content: Theatre Tax Relief, Orchestra Tax Relief, live performance tax credits - Mapping Keywords: Theatre Tax Relief, Orchestra Tax Relief, live performance credits **Museums and galleries tax relief** - URL Slug: \`museums-galleries-tax-relief\` - Sample Content: Museum and Galleries Exhibition Tax Relief, exhibition tax credits - Mapping Keywords: museum tax relief, exhibition tax relief, gallery tax credit ### **13.11 Pharmaceutical and biotech** L2 Slug: \`pharmaceutical-biotech\` **Medicines manufacturing licence** - URL Slug: \`medicines-manufacturing-licence\` - Sample Content: Manufacturer's Licence (MIA), Good Manufacturing Practice (GMP), MHRA licensing - Mapping Keywords: MIA, medicines manufacturing, GMP, pharmaceutical licence **Marketing authorisation for medicines** - URL Slug: \`marketing-authorisation-medicines\` - Sample Content: Medicine authorisation, clinical trials, MHRA approval, marketing authorisation application - Mapping Keywords: marketing authorisation, medicine approval, MHRA, clinical trials **Wholesale distribution authorisation** - URL Slug: \`wholesale-distribution-authorisation\` - Sample Content: Wholesale Dealer's Licence (WDA), Good Distribution Practice (GDP) - Mapping Keywords: WDA, wholesale medicines, GDP, distribution licence ### **13.12 Aerospace and defence** L2 Slug: \`aerospace-defence\` **Dual-use items export licensing** - URL Slug: \`dual-use-items-export-licensing\` - Sample Content: Control list classification for dual-use items, UK Strategic Export Control Lists, Open General Export Licences (OGELs) - Mapping Keywords: dual-use export, UK Strategic Export Control Lists, OGEL, control list classification **Military goods export licensing** - URL Slug: \`military-goods-export-licensing\` - Sample Content: Standard Individual Export Licences (SIELs) for military equipment, end-use controls, arms embargoes - Mapping Keywords: military export licence, SIEL, arms export, military equipment export **Aerospace manufacturing certification** - URL Slug: \`aerospace-manufacturing-certification\` - Sample Content: Civil aviation production organisation approvals, EASA Part 21 and UK equivalent, airworthiness certification - Mapping Keywords: Part 21 approval, production organisation, aerospace certification **Defence contract regulations** - URL Slug: \`defence-contract-regulations\` - Sample Content: Single Source Procurement Framework, Ministry of Defence contracting, Defence and Security Public Contracts Regulations - Mapping Keywords: MOD contracts, defence procurement, single source regulations ### **13.13 Automotive and vehicle manufacturing** L2 Slug: \`automotive-vehicle-manufacturing\` **Vehicle type approval (GB WVTA)** - URL Slug: \`vehicle-type-approval-gb-wvta\` - Sample Content: Apply for GB Whole Vehicle Type Approval through Vehicle Certification Agency, type approval certificates - Mapping Keywords: GB WVTA, vehicle type approval, VCA, type approval certificate **UK(NI) and UNECE type approval** - URL Slug: \`ukni-unece-type-approval\` - Sample Content: UK(NI) type approval for Northern Ireland market, UNECE type approval under 1958 Agreement - Mapping Keywords: UK(NI) approval, UNECE type approval, 1958 Agreement **Individual Vehicle Approval (IVA)** - URL Slug: \`individual-vehicle-approval-iva\` - Sample Content: Apply for Individual Vehicle Approval for single vehicles, IVA test requirements - Mapping Keywords: IVA test, Individual Vehicle Approval, single vehicle approval **Vehicle emissions and environmental standards** - URL Slug: \`vehicle-emissions-environmental-standards\` - Sample Content: Euro 6 emissions standards, WLTP testing procedures, low emission zone compliance - Mapping Keywords: Euro 6, WLTP, vehicle emissions, emissions testing **Electric vehicle and battery regulations** - URL Slug: \`electric-vehicle-battery-regulations\` - Sample Content: Battery safety standards, electric vehicle type approval, charging infrastructure regulations - Mapping Keywords: EV regulations, battery safety, electric vehicle approval **End-of-life vehicles regulations** - URL Slug: \`end-of-life-vehicles-regulations\` - Sample Content: Authorised Treatment Facilities (ATFs), ELV Regulations, vehicle depollution and recycling - Mapping Keywords: end-of-life vehicles, ELV regulations, ATF, vehicle recycling ### **13.14 Technology and digital platforms** L2 Slug: \`technology-digital-platforms\` **Online Safety Act duties for platforms** - URL Slug: \`online-safety-act-platform-duties\` - Sample Content: User-to-user service duties, illegal content risk assessments, child safety duties - Mapping Keywords: Online Safety Act, user-to-user service, Ofcom online safety **Risk assessments for online services** - URL Slug: \`risk-assessments-online-services\` - Sample Content: Illegal content risk assessments, children's risk assessments, Category 1 service additional duties - Mapping Keywords: online safety risk assessment, illegal content assessment **Age verification and assurance** - URL Slug: \`age-verification-assurance\` - Sample Content: Highly effective age assurance for pornographic content, age verification technologies - Mapping Keywords: age verification, age assurance, pornographic content controls **Search service duties** - URL Slug: \`search-service-duties\` - Sample Content: Search service duties under Online Safety Act, search risk assessments - Mapping Keywords: search service, search engine regulation, Online Safety Act search **Digital Services Tax** - URL Slug: \`digital-services-tax\` - Sample Content: Register and pay Digital Services Tax on UK revenues, DST thresholds and rates - Mapping Keywords: Digital Services Tax, DST, online marketplace tax **Software and app store regulations** - URL Slug: \`software-app-store-regulations\` - Sample Content: App store compliance, digital content distribution, consumer rights for digital products - Mapping Keywords: app store regulation, digital content, software distribution ### **13.15 Chemicals and advanced materials** L2 Slug: \`chemicals-advanced-materials\` **Register chemicals under UK REACH** - URL Slug: \`register-chemicals-uk-reach\` - Sample Content: Register substances with HSE using Comply with UK REACH service, registration tonnage deadlines - Mapping Keywords: UK REACH registration, HSE REACH, chemical registration **Chemical classification and labelling (GB CLP)** - URL Slug: \`chemical-classification-labelling-gb-clp\` - Sample Content: Classify hazardous substances under GB CLP Regulation, prepare hazard labels and Safety Data Sheets - Mapping Keywords: GB CLP, chemical classification, hazard labelling, Safety Data Sheets **COMAH regulations for major hazard sites** - URL Slug: \`comah-major-hazard-sites\` - Sample Content: COMAH Regulations 2015, lower-tier and upper-tier establishments, safety reports - Mapping Keywords: COMAH regulations, Control of Major Accident Hazards, major hazard sites **Biocidal products authorisation** - URL Slug: \`biocidal-products-authorisation\` - Sample Content: GB Biocidal Products Regulation, apply for biocide product authorisation - Mapping Keywords: GB BPR, biocidal products, biocide authorisation **Chemical import and export notifications** - URL Slug: \`chemical-import-export-notifications\` - Sample Content: PIC Regulation for import/export of certain chemicals, Rotterdam Convention compliance - Mapping Keywords: PIC Regulation, prior informed consent, chemical import export **Downstream user obligations** - URL Slug: \`downstream-user-obligations\` - Sample Content: UK REACH downstream user requirements, chemical safety scenarios, restriction compliance - Mapping Keywords: downstream user, REACH compliance, chemical safety scenarios ### **13.16 Packaging manufacturing** L2 Slug: \`packaging-manufacturing\` **Extended Producer Responsibility for packaging** - URL Slug: \`epr-packaging-manufacturing\` - Sample Content: EPR for packaging regulations, register as packaging producer, packaging data reporting - Mapping Keywords: EPR packaging, Extended Producer Responsibility, packaging producer **Packaging design and recyclability** - URL Slug: \`packaging-design-recyclability\` - Sample Content: Packaging design requirements, recyclability standards, essential requirements for packaging - Mapping Keywords: packaging design, recyclable packaging, essential requirements **Packaging waste obligations** - URL Slug: \`packaging-waste-obligations\` - Sample Content: Producer responsibility obligations, packaging recovery notes (PRNs), packaging waste targets - Mapping Keywords: packaging waste, PRN, Packaging Export Recovery Note`; useEffect(() => { const data = parseMarkdown(markdownData); // Much wider for better horizontal spacing const width = 2400; const height = 900; // Clear previous d3.select(svgRef.current).selectAll("*").remove(); const svg = d3.select(svgRef.current) .attr("width", width) .attr("height", height) .attr("viewBox", `0 0 ${width} ${height}`) .style("font-family", "'GDS Transport', Arial, sans-serif") .style("background", "white"); const g = svg.append("g"); // Zoom const zoom = d3.zoom() .scaleExtent([0.1, 2]) .on("zoom", (event) => g.attr("transform", event.transform)); svg.call(zoom); // Create tree with much more horizontal space const tree = d3.tree() .size([width - 400, height - 250]) .separation((a, b) => { // More separation between siblings return a.parent === b.parent ? 2 : 2.5; }); const root = d3.hierarchy(data); // Start with root expanded, everything else collapsed root.children.forEach(collapse); function collapse(d) { if (d.children) { d._children = d.children; d._children.forEach(collapse); d.children = null; } } let i = 0; const duration = 400; function update(source) { const treeData = tree(root); const nodes = treeData.descendants(); const links = treeData.links(); // Normalize for fixed-depth with better vertical spacing nodes.forEach(d => { d.y = d.depth * 220; // More vertical space between levels }); // Update nodes const node = g.selectAll('g.node') .data(nodes, d => d.id || (d.id = ++i)); const nodeEnter = node.enter().append('g') .attr('class', 'node') .attr("transform", d => `translate(${source.x0 || width/2},${source.y0 || 100})`) .on('click', click); // Circles - slightly larger nodeEnter.append('circle') .attr('r', d => { if (d.depth === 0) return 8; if (d.data.level === 'L1') return 7; if (d.data.level === 'L2') return 6; return 5; }) .style("fill", d => { if (d.depth === 0) return "#1d70b8"; if (d.data.level === 'L1') return "#005ea5"; if (d.data.level === 'L2') return "#00703c"; return "#912b88"; }) .style("stroke", d => d._children ? "#0b0c0c" : "none") .style("stroke-width", 2.5); // Plus/minus indicators nodeEnter.append('text') .attr('dy', d => { if (d.depth === 0) return 5; if (d.data.level === 'L1') return 4.5; return 4; }) .attr('text-anchor', 'middle') .style('fill', 'white') .style('font-size', d => { if (d.depth === 0) return '12px'; if (d.data.level === 'L1') return '11px'; return '10px'; }) .style('font-weight', 'bold') .style('pointer-events', 'none') .text(d => d._children ? '+' : d.children ? '−' : ''); // Labels - positioned above nodes with better spacing nodeEnter.append('text') .attr("dy", -15) .attr("text-anchor", "middle") .style("font-size", d => { if (d.depth === 0) return "14px"; if (d.data.level === 'L1') return "11px"; if (d.data.level === 'L2') return "10px"; return "9px"; }) .style("font-weight", d => (d.depth === 0 || d.data.level === 'L1') ? "bold" : "normal") .style("fill", "#0b0c0c") .style("pointer-events", "none") .each(function(d) { const text = d3.select(this); const name = d.data.name; // More aggressive truncation based on level let maxLength; if (d.depth === 0) maxLength = 30; else if (d.data.level === 'L1') maxLength = 25; else if (d.data.level === 'L2') maxLength = 20; else maxLength = 18; if (name.length > maxLength) { text.text(name.substring(0, maxLength) + "..."); } else { text.text(name); } // Add tooltip text.append("title").text(name + (d.data.slug ? `\nSlug: ${d.data.slug}` : '')); }) .style('cursor', d => (d.children || d._children) ? 'pointer' : 'default'); // UPDATE const nodeUpdate = nodeEnter.merge(node); nodeUpdate.transition() .duration(duration) .attr("transform", d => `translate(${d.x},${d.y})`); nodeUpdate.select('circle') .style("fill", d => { if (d.depth === 0) return "#1d70b8"; if (d.data.level === 'L1') return "#005ea5"; if (d.data.level === 'L2') return "#00703c"; return "#912b88"; }) .style("stroke", d => d._children ? "#0b0c0c" : "none"); nodeUpdate.select('text') .text(d => d._children ? '+' : d.children ? '−' : ''); // EXIT const nodeExit = node.exit().transition() .duration(duration) .attr("transform", d => `translate(${source.x},${source.y})`) .remove(); nodeExit.select('circle') .attr('r', 0); nodeExit.select('text') .style('fill-opacity', 0); // Links const link = g.selectAll('path.link') .data(links, d => d.target.id); const linkEnter = link.enter().insert('path', "g") .attr("class", "link") .attr('d', d => { const o = {x: source.x0 || width/2, y: source.y0 || 100}; return diagonal(o, o); }) .style("fill", "none") .style("stroke", "#b1b4b6") .style("stroke-width", 2); const linkUpdate = linkEnter.merge(link); linkUpdate.transition() .duration(duration) .attr('d', d => diagonal(d.source, d.target)); link.exit().transition() .duration(duration) .attr('d', d => { const o = {x: source.x, y: source.y}; return diagonal(o, o); }) .remove(); // Store old positions nodes.forEach(d => { d.x0 = d.x; d.y0 = d.y; }); } function diagonal(s, d) { return `M ${s.x} ${s.y} C ${s.x} ${(s.y + d.y) / 2}, ${d.x} ${(s.y + d.y) / 2}, ${d.x} ${d.y}`; } function click(event, d) { if (d.children) { d._children = d.children; d.children = null; } else { d.children = d._children; d._children = null; } update(d); setSelectedNode(d.data); } update(root); // Center view with appropriate zoom for wider canvas const initialTransform = d3.zoomIdentity.translate(200, 80).scale(0.65); svg.call(zoom.transform, initialTransform); // Add legend - fixed position bottom left const legend = svg.append("g") .attr("transform", "translate(30, 780)"); legend.append("rect") .attr("x", -10) .attr("y", -10) .attr("width", 180) .attr("height", 110) .attr("fill", "white") .attr("stroke", "#b1b4b6") .attr("stroke-width", 2) .attr("rx", 4); const legendData = [ { color: "#1d70b8", label: "Root", level: "root" }, { color: "#005ea5", label: "L1 Categories", level: "L1" }, { color: "#00703c", label: "L2 Subcategories", level: "L2" }, { color: "#912b88", label: "L3 Topics", level: "L3" } ]; legendData.forEach((d, i) => { const legendRow = legend.append("g") .attr("transform", `translate(0, ${i * 25})`); legendRow.append("circle") .attr("r", 6) .attr("fill", d.color) .attr("stroke", "#0b0c0c") .attr("stroke-width", 1); legendRow.append("text") .attr("x", 15) .attr("y", 5) .style("font-size", "12px") .text(d.label); }); }, []); const handleSearch = (e) => { const term = e.target.value.toLowerCase(); setSearchTerm(term); if (!term) { d3.selectAll(".node text") .filter(function() { // Only select label text, not the +/- indicators return d3.select(this).attr('text-anchor') === 'middle' && !d3.select(this).text().match(/^[+−]$/); }) .style("font-weight", null) .style("fill", "#0b0c0c"); return; } d3.selectAll(".node text") .filter(function() { return d3.select(this).attr('text-anchor') === 'middle' && !d3.select(this).text().match(/^[+−]$/); }) .style("font-weight", function() { const node = d3.select(this.parentNode).datum(); const text = node.data.name.toLowerCase(); const slug = (node.data.slug || '').toLowerCase(); return (text.includes(term) || slug.includes(term)) ? "bold" : null; }) .style("fill", function() { const node = d3.select(this.parentNode).datum(); const text = node.data.name.toLowerCase(); const slug = (node.data.slug || '').toLowerCase(); return (text.includes(term) || slug.includes(term)) ? "#d4351c" : "#0b0c0c"; }); }; return (
{/* Header */}

GOV.UK Business Taxonomy v5 • Interactive Tree

{/* Controls */}
{stats.l1}
L1
{stats.l2}
L2
{stats.l3}
L3
{/* SVG Container */}
{/* Instructions overlay - compact for slides */}
Instructions:
• Click to expand/collapse
• Scroll to zoom
• Drag to pan
{/* Selected node details */} {selectedNode && selectedNode.slug && (

{selectedNode.name}

Level: {selectedNode.level}
{selectedNode.slug}
)}
); }; export default TaxonomyTree;