1. How do you match companies by legal name and normalized variants?
Start by converting each legal name into a normalized form and generating controlled variants while preserving the exact source string. Across the seven methods in this guide, the core rule is to combine name evidence with identifiers, dates, addresses, and corporate history rather than accepting a text match as proof.
Name normalization is the process of applying consistent rules for capitalization, spacing, punctuation, accents, and legal-form abbreviations. Store both the original name and the normalized value so reviewers can reconstruct every decision. Generate aliases for known forms such as SOCIEDAD LIMITADA, S.L., and SL, but do not remove words that distinguish one company from another. Use fuzzy name similarity to produce candidates, not to approve matches automatically.
Why are Spanish company and procurement records difficult to cross-reference?
Spanish company and procurement records are difficult to link because their names, identifiers, dates, and publication purposes can differ across sources. Treat the task as entity resolution—the process of deciding which records refer to the same real-world organization—rather than as a simple database join.
The Boletín Oficial del Registro Mercantil (BORME) is Spain’s official gazette for acts and notices associated with the Mercantile Registry, as described by the Spanish Official State Gazette. The Plataforma de Contratación del Sector Público (PLACSP) is Spain’s public-sector contracting platform; Article 63 of Spain’s Public Sector Contracts Law specifies information and documents that contracting profiles must publish, including award and formalization information, according to the consolidated law published by the BOE.
These sources describe different events. A BORME notice may concern a name change or appointment, while a procurement record may identify a bidder or awardee using the name current when that procedure was published.
Cross-referencing Spanish company and procurement data is an entity-resolution problem, not a single database join. A defensible result combines identifiers, names, dates, addresses, and event history while preserving the original records and any uncertainty.
| Evidence | Best use | Main caution |
|---|---|---|
| Exact tax identifier | Strong candidate confirmation | May be missing, mistyped, or attached to the wrong party |
| Normalized legal name | Candidate generation | Similar names can identify different entities |
| Address | Supporting or contradictory evidence | Offices move and addresses can be shared |
| Publication and event dates | Historical validation | Sources may report different stages of an event |
| Activity and procurement codes | Plausibility check | They classify activity, not identity |
2. How do you use tax identifiers and other stable company identifiers?
A Número de Identificación Fiscal (NIF) is Spain’s tax identifier for a person or entity; Order EHA/451/2008 published by the BOE regulates its composition for legal persons and entities. Use an exact, format-valid NIF as high-confidence evidence only when it belongs to the same legal entity and fits the record’s date.
Normalize letters to uppercase and remove presentation separators, but retain the raw value for audit purposes. Validate the expected structure before matching, because an exact match between two malformed values does not establish identity. Keep procurement-platform IDs, registry references, and external identifiers in separate typed fields rather than merging them into one generic identifier column. When a name match conflicts with a valid NIF, send the record to review instead of choosing whichever field appears more complete.
3. How do you connect BORME notices to procurement records?
Connect a BORME notice to procurement data by identifying the legal entity named in the notice, resolving it to a stable entity record, and then linking that entity to relevant procedures. Match through the company entity rather than joining notice text directly to an awardee-name column.
Build a link table that records the BORME notice, resolved entity, procurement procedure, match method, and supporting evidence. Store publication dates separately from effective dates mentioned in documents, because they answer different historical questions. Use the notice type as context: a name-change notice can explain an alias, while an appointment notice should not be treated as evidence that two companies are identical. For source-field background, see Forma’s guides to querying BORME company notices and understanding what PLACSP publishes.
4. How do you resolve subsidiaries, trading names, and legal-entity changes?
Represent subsidiaries, brands, branches, and former legal names as explicit relationships instead of aliases unless the evidence shows they identify the same legal entity. A temporal identity graph is a data model that records entities, relationships, and the dates during which each name or relationship was valid.
Create separate nodes for a parent company, subsidiary, joint bidder, and contracting party. Add aliases only when a source ties the alternate name to that entity, and record the source and applicable dates. Model mergers, absorptions, transformations, and name changes as events rather than overwriting the previous company record. This preserves the distinction between a company that changed its name and a contract transferred to a different legal entity.
5. How do you link procurement awards to historical company records?
Resolve each bidder or awardee against the company information that was valid at the relevant procurement milestone, not only against the latest company profile. This prevents a later name, address, or corporate change from being projected backward onto an earlier tender without evidence.
Keep tender publication, bid, award, formalization, modification, and termination events separate when the source provides them. Article 63 of the Public Sector Contracts Law includes award decisions and contract formalization among the information published through contracting profiles. Attach each procurement role to an entity and an effective date, while retaining the name printed in the original record. If an award predates a BORME name-change notice, test whether the former name was valid at the award date before classifying the difference as an error.
6. How do you validate matches across dates, addresses, and activity codes?
Validate a candidate by checking whether its dates, addresses, business activities, and procurement subject form a coherent record. These fields should support or challenge a match, but none should override a contradictory tax identifier or clear evidence that the records describe different legal entities.
Compare addresses after separating street type, street name, number, unit, postcode, municipality, and province. CNAE is Spain’s National Classification of Economic Activities, approved through Royal Decree 475/2007; use it to assess whether a company’s recorded activity is plausible for the match. CPV is the European Union’s Common Procurement Vocabulary, established by Regulation (EC) No 2195/2002, and classifies the subject of public contracts. CNAE and CPV codes are not identity keys, so a compatible pair is supporting evidence rather than confirmation.
7. How do you build a reliable cross-referenced dataset for research and AI assistants?
Build the dataset around immutable source records, resolved entities, dated events, typed relationships, and reviewable match decisions. Provenance is the recorded origin and processing history of a data point; every normalized value and entity link should lead back to its source record and transformation rule.
Use at least these logical components:
source_recordsfor untouched source payloads and document references;entitiesfor resolved legal organizations;identifiersandaliaseswith type, source, and validity dates;eventsfor corporate and procurement milestones;match_decisionsfor evidence, contradictions, method, status, and reviewer notes.
Assign stable internal IDs without replacing official identifiers. Preserve rejected candidates so researchers can understand why a plausible match was not accepted. AI assistants should receive the matched entity, supporting records, dates, and uncertainty—not only a company name or opaque score. Developers working with Forma can consult the Official Company Signals documentation and Tender Intelligence documentation for relevant interfaces.
What limitations and false matches should users document?
Document every ambiguity that could change the interpretation of a match, including missing identifiers, conflicting dates, shared addresses, and uncertain corporate relationships. A useful record explains both why a candidate was selected and what evidence could make that decision wrong.
Common limitations include:
- different companies with similar or identical normalized names;
- identifiers that are absent, malformed, truncated, or attached to another participant;
- registered offices shared by several entities;
- trading names that are not established legal aliases;
- procurement records involving a consortium rather than one company;
- corporate events published after the procurement milestone being analyzed;
- source corrections or documents that are not available in structured form.
Store the candidate set, evidence used, conflicting fields, rule or model version, decision status, source URLs, and processing time. Keep confidence labels such as exact, probable, and unresolved tied to documented criteria. Do not present an unresolved candidate as a confirmed supplier merely because it has the highest similarity score.
How can developers expose cross-referenced Spanish public data through an API or MCP tool?
Expose the data through an application programming interface (API), which is a defined contract for software requests and responses, and add read-only assistant tools for evidence-backed queries. Return source references and ambiguity alongside results so clients can distinguish confirmed links from candidates.
The Model Context Protocol (MCP) is an open standard for connecting AI applications to external systems, according to the official MCP documentation. A practical implementation can use the same entity-resolution service behind both interfaces:
- Create deterministic endpoints such as
GET /companies/{id},GET /companies/{id}/events, andGET /procedures/{id}/participants. - Add a candidate-search endpoint that accepts a name, NIF, address, and relevant date without silently choosing one result.
- Expose narrowly scoped MCP tools such as
find_company_candidates,get_company_history, andget_procurement_evidence. - Return raw source references, normalized fields, match status, evidence, contradictions, and validity dates in every resolved response.
- Add pagination, stable error codes, access controls, and request logging appropriate to the data and intended users.
Keep matching logic on the server so API clients and assistants apply the same rules. Tool descriptions should state whether a result is confirmed, probable, or unresolved and should instruct the assistant to cite the returned sources.
What are the frequently asked questions?
The most common follow-up questions concern name-only matches, joint bidders, source preservation, and refresh schedules.
Can a company be matched using only its legal name?
A legal name alone can generate candidates, but it should rarely establish a confirmed match. Require additional evidence such as a compatible NIF, dated address, official alias, or linked corporate event. If no corroborating evidence exists, label the result unresolved.
How should a temporary consortium be represented?
Represent a Unión Temporal de Empresas (UTE) as a procurement participant with explicit relationships to its member companies. Do not merge the members into one permanent company entity or attribute the entire award to each member without supporting allocation data. Preserve the consortium name and identifier exactly as published.
Should corrected values replace the original public record?
No. Keep the original source value unchanged and store corrected or normalized values in separate fields. This allows researchers to reproduce the match and distinguish a source correction from a transformation performed by your pipeline.
How often should cross-referenced records be refreshed?
Set the refresh schedule according to the research use case, source publication pattern, and acceptable delay. Reprocess affected entities when a new corporate event, procurement update, or source correction appears. Record each processing time rather than changing historical results without an audit trail.