<codeBook xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="ddi:codebook:2_5 http://www.ddialliance.org/Specification/DDI-Codebook/2.5/XMLSchema/codebook.xsd" xmlns="ddi:codebook:2_5">
  <docDscr>
    <citation>
      <titlStmt>
        <titl xml:lang="sv">Främlingsfientligt våld i Sverige 2009-2022</titl>
        <parTitl xml:lang="en">Xenophobic violence in Sweden 2009-2022</parTitl>
        <IDNo agency="SND">2025-361-1</IDNo>
        <IDNo agency="gu.se">202100-3153</IDNo>
        <IDNo agency="DOI">https://doi.org/10.5878/66h7-a305</IDNo>
      </titlStmt>
      <prodStmt>
        <producer xml:lang="en" abbr="SND">Swedish National Data Service</producer>
        <producer xml:lang="sv" abbr="SND">Svensk nationell datatjänst</producer>
      </prodStmt>
      <holdings URI="https://doi.org/10.5878/66h7-a305">Landing page</holdings>
    </citation>
  </docDscr>
  <stdyDscr>
    <citation>
      <titlStmt>
        <titl xml:lang="sv">Främlingsfientligt våld i Sverige 2009-2022</titl>
        <parTitl xml:lang="en">Xenophobic violence in Sweden 2009-2022</parTitl>
        <IDNo agency="SND">2025-361-1</IDNo>
        <IDNo agency="gu.se">202100-3153</IDNo>
        <IDNo agency="DOI">https://doi.org/10.5878/66h7-a305</IDNo>
        <IDNo agency="SwePub">oai:gup.ub.gu.se/350049</IDNo>
        <IDNo agency="Handle">2077/86880</IDNo>
        <IDNo agency="ISBN">9789187876790</IDNo>
      </titlStmt>
      <rspStmt>
        <AuthEnty xml:lang="en" affiliation="Department of Sociology and Work Science, University of Gothenburg">Törnberg, Anton</AuthEnty>
        <AuthEnty xml:lang="sv" affiliation="Institutionen för sociologi och arbetsvetenskap, Göteborgs universitet">Törnberg, Anton</AuthEnty>
        <AuthEnty xml:lang="en" affiliation="Department of Sociology and Work Science, University of Gothenburg">Lundstedt, Måns</AuthEnty>
        <AuthEnty xml:lang="sv" affiliation="Institutionen för sociologi och arbetsvetenskap, Göteborgs universitet">Lundstedt, Måns</AuthEnty>
        <AuthEnty xml:lang="en" affiliation="Department of Sociology and Work Science, University of Gothenburg">Vallström, Victoria</AuthEnty>
        <AuthEnty xml:lang="sv" affiliation="Institutionen för sociologi och arbetsvetenskap, Göteborgs universitet">Vallström, Victoria</AuthEnty>
        <AuthEnty xml:lang="en" affiliation="Department of Sociology and Work Science, University of Gothenburg">Wahlström, Mattias</AuthEnty>
        <AuthEnty xml:lang="sv" affiliation="Institutionen för sociologi och arbetsvetenskap, Göteborgs universitet">Wahlström, Mattias</AuthEnty>
      </rspStmt>
      <prodStmt>
        <grantNo xml:lang="en" agency="Swedish Research Council">2022-05487_VR</grantNo>
        <grantNo xml:lang="sv" agency="Vetenskapsrådet">2022-05487_VR</grantNo>
      </prodStmt>
      <distStmt>
        <distrbtr xml:lang="en" abbr="SND" URI="https://snd.se">Swedish National Data Service</distrbtr>
        <distrbtr xml:lang="sv" abbr="SND" URI="https://snd.se">Svensk nationell datatjänst</distrbtr>
        <distDate xml:lang="en" date="2026-03-10" />
      </distStmt>
      <verStmt>
        <version elementVersion="1" elementVersionDate="2026-03-10" />
      </verStmt>
      <holdings URI="https://doi.org/10.5878/66h7-a305">Landing page</holdings>
    </citation>
    <stdyInfo>
      <subject>
        <keyword xml:lang="en" vocab="ELSST" vocabURI="https://elsst.cessda.eu/id/6/288fb83a-efb7-41ef-ade1-acf6c798c1e3">IMMIGRANTS</keyword>
        <keyword xml:lang="sv" vocab="ELSST" vocabURI="https://elsst.cessda.eu/id/6/288fb83a-efb7-41ef-ade1-acf6c798c1e3">INVANDRARE</keyword>
        <keyword xml:lang="en" vocab="ELSST" vocabURI="https://elsst.cessda.eu/id/6/842d1098-3f00-4ada-ad3d-447b2108fce2">REFUGEES</keyword>
        <keyword xml:lang="sv" vocab="ELSST" vocabURI="https://elsst.cessda.eu/id/6/842d1098-3f00-4ada-ad3d-447b2108fce2">FLYKTINGAR</keyword>
        <keyword xml:lang="en" vocab="ELSST" vocabURI="https://elsst.cessda.eu/id/6/5daecb52-714d-4e40-9be4-049de382f9c8">CRIME AND SECURITY</keyword>
        <keyword xml:lang="sv" vocab="ELSST" vocabURI="https://elsst.cessda.eu/id/6/5daecb52-714d-4e40-9be4-049de382f9c8">BROTT</keyword>
        <topcClas xml:lang="en" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=LawCrimeAndLegalSystems.CrimeAndLawEnforcement">Crime and law enforcement</topcClas>
        <topcClas xml:lang="sv" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=LawCrimeAndLegalSystems.CrimeAndLawEnforcement">Kriminalitet och rättstillämpning</topcClas>
        <topcClas xml:lang="en" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=Politics.PoliticalBehaviourAndAttitudes">Political behaviour and attitudes</topcClas>
        <topcClas xml:lang="sv" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=Politics.PoliticalBehaviourAndAttitudes">Politiska beteenden och attityder</topcClas>
        <topcClas xml:lang="en" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=Politics.ConflictSecurityAndPeace">Conflict, security and peace</topcClas>
        <topcClas xml:lang="sv" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=Politics.ConflictSecurityAndPeace">Konflikter, säkerhet och fred</topcClas>
        <topcClas xml:lang="en" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=SocialStratificationAndGroupings.EqualityInequalityAndSocialExclusion">Equality, inequality and social exclusion</topcClas>
        <topcClas xml:lang="sv" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=SocialStratificationAndGroupings.EqualityInequalityAndSocialExclusion">Jämlikhet, ojämlikhet och socialt utanförskap</topcClas>
        <topcClas xml:lang="en" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=SocialStratificationAndGroupings.Minorities">Minorities</topcClas>
        <topcClas xml:lang="sv" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=SocialStratificationAndGroupings.Minorities">Minoriteter</topcClas>
        <topcClas xml:lang="en" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=SocietyAndCulture.SocialBehaviourAndAttitudes">Social behaviour and attitudes</topcClas>
        <topcClas xml:lang="sv" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=SocietyAndCulture.SocialBehaviourAndAttitudes">Socialt beteende och attityder</topcClas>
        <topcClas xml:lang="en" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=SocietyAndCulture.CulturalAndNationalIdentity">Cultural and national identity</topcClas>
        <topcClas xml:lang="sv" vocab="CESSDA Topic Classification" vocabURI="https://vocabularies.cessda.eu/vocabulary/TopicClassification?code=SocietyAndCulture.CulturalAndNationalIdentity">Kulturell och nationell identitet</topcClas>
      </subject>
      <abstract xml:lang="en" contentType="abstract">This dataset contains all police-reported and hate-crime–flagged incidents of xenophobic physical violence recorded in Sweden between 1 January 2009 and 31 December 2022. It is a nationally complete event-level dataset comprising 2,522 unique police reports. The data material includes only cases involving actual or attempted physical violence where a xenophobic motive was either explicitly expressed or clearly inferable from the police narrative. Non-violent offences, harassment, threats, symbolic hate expressions, and other hate-crime categories are not included.

The dataset is constructed from structured and unstructured fields in Swedish police reports. Standardized variables (e.g., offence codes, timestamps, and reporting metadata) were extracted programmatically, primarily using Python scripts. Free-text descriptions were manually reviewed to classify motives, locations, and offender/victim characteristics. Several analytic variables were created by combining multiple fields (e.g., collapsed offence categories, derived motive groups, temporal variables). Strict exclusion criteria were applied to remove misclassified cases, unclear motives, incidents involving professional enforcement personnel, and intergroup conflicts not tied to xenophobic targeting. All coding procedures and variable definitions are documented in an accompanying codebook.

The dataset consists of 26 variables grouped into six domains:
1. Metadata (e.g., report date, reporting method)
2. Offence characteristics (official offence codes, collapsed offence categories, hate-crime motive)
3. Contextual information (incident date and time, physical setting, coordinates aggregated to 1×1 km grid cells, municipality and region)
4. Victim characteristics (age category, gender)
5. Offender characteristics (number of offenders, gender)
6. Type of violence (type of physical action and weapons/objects used) 

The dataset is provided as a de-identified, row-level event file. Free-text narratives and personal identifiers have been removed to comply with ethical and legal requirements; geographical information is aggregated to grid level to reduce the risk of re-identification. No additional software beyond standard statistical tools (e.g., R, Python, Stata, SPSS) is required to read the file. Scripts used for automatic extraction and variable derivation can be supplied on request. A codebook describing all variables, coding decisions, and exclusion criteria accompanies the dataset.

This material enables researchers to examine long-term patterns, spatial and temporal distributions, and characteristics of xenophobic violence in Sweden using a transparent and replicable administrative-data framework.</abstract>
      <abstract xml:lang="sv" contentType="abstract">Detta dataset innehåller alla polisanmälda och hatbrottsflaggade incidenter av främlingsfientlig fysisk våldsanvändning som registrerats i Sverige mellan 1 januari 2009 och 31 december 2022. Det är ett nationellt komplett dataset bestående av 2 522 unika polisanmälningar. Datamaterialet omfattar enbart fall som innefattar faktisk eller försök till fysisk våldsanvändning där ett främlingsfientligt motiv antingen uttryckligen framgår eller tydligt kan utläsas ur anmälan. Icke-våldsbrott, trakasserier, hot, symboliska hatuttryck och andra hatbrottskategorier ingår inte.

Datasetet är skapat utifrån både strukturerade och ostrukturerade fält i svenska polisanmälningar. Standardiserade variabler (t.ex. brottskoder, tidsstämplar och rapporteringsmetadata) har extraherats automatiskt, huvudsakligen med Python-skript. Narrativa fritextfält har manuellt granskats för att klassificera motiv, platser och offer- respektive gärningspersonsegenskaper. Flera analytiska variabler har konstruerats genom att kombinera information från flera fält (t.ex. sammanslagna brottskategorier, motivgrupper, tidsvariabler). Strikta exklusionskriterier har använts för att avlägsna felklassificerade fall, oklara motiv, händelser där yrkesutövare såsom polis eller ordningsvakter varit involverade i tjänsteutövning samt intergruppskonflikter som inte varit riktade mot en främlingsfientligt definierad målgrupp. Alla kodningsprocedurer och variabeldefinitioner finns dokumenterade i en medföljande kodbok.

Datasetet består av 26 variabler grupperade i sex domäner:
1. Metadata (t.ex. anmälningsdatum, rapporteringssätt)
2. Brottskarakteristika (officiella brottskoder, sammanslagna brottskategorier, hatbrottsmotiv)
3. Kontextuell information (händelsedatum och tid, fysisk miljö, koordinater aggregerade till 1×1 km-rutor, kommun och region)
4. Offervariabler (ålderskategori, kön)
5. Gärningspersonvariabler (antal gärningspersoner, kön)
6. Våldstyp (typ av fysisk handling samt använda vapen/objekt)

Datasetet tillhandahålls som en avidentifierad händelsefil på radnivå. Fritextmaterial och personuppgifter har tagits bort för att uppfylla etiska och juridiska krav; geografisk information har aggregerats till rutnivå för att minska risken för återidentifiering. Ingen särskild programvara krävs för att läsa filen utöver standardverktyg för statistisk analys (t.ex. R, Python, Stata, SPSS). Skript för automatisk extraktion och variabelhärledning kan tillhandahållas på begäran. En kodbok med beskrivningar av samtliga variabler, kodningsbeslut och exklusionskriterier följer datasetet.

Materialet gör det möjligt för forskare att analysera långsiktiga mönster, rumsliga och tidsmässiga fördelningar samt kännetecken för främlingsfientligt våld i Sverige på ett transparent och reproducerbart vis.</abstract>
      <sumDscr>
        <collDate xml:lang="en" date="2023" event="start">2023</collDate>
        <collDate xml:lang="en" date="2024" event="end">2024</collDate>
        <nation xml:lang="en" abbr="SE">Sweden</nation>
        <nation xml:lang="sv" abbr="SE">Sverige</nation>
        <anlyUnit xml:lang="en" unit="Event/Process/Activity">Event/Process/Activity<concept vocab="DDI Analysis Unit" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/AnalysisUnit/2.1.3?languageVersion=en-2.1.3">Event/Process/Activity</concept></anlyUnit>
        <anlyUnit xml:lang="sv" unit="Händelse/process/aktivitet">Händelse/process/aktivitet<concept vocab="DDI Analysis Unit" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/AnalysisUnit/2.1.3?languageVersion=sv-2.1.3">Händelse/process/aktivitet</concept></anlyUnit>
        <universe xml:lang="en">This dataset contains all police-reported and hate-crime–flagged incidents of xenophobic physical violence recorded in Sweden between 1 January 2009 and 31 December 2022. It is a nationally complete event-level dataset comprising 2,522 unique police reports. The data material includes only cases involving actual or attempted physical violence where a xenophobic motive was either explicitly expressed or clearly inferable from the police narrative. Nonviolent offences, harassment, threats, symbolic hate expressions, and other hate-crime categories are not included.</universe>
        <universe xml:lang="sv">Detta dataset innehåller alla polisanmälda och hatbrottsflaggade incidenter av främlingsfientlig fysisk våldsanvändning som registrerats i Sverige mellan 1 januari 2009 och 31 december 2022. Det är ett nationellt komplett dataset bestående av 2 522 unika polisanmälningar. Datamaterialet omfattar enbart fall som innefattar faktisk eller försök till fysisk våldsanvändning där ett främlingsfientligt motiv antingen uttryckligen framgår eller tydligt kan utläsas ur anmälan. Icke-våldsbrott, trakasserier, hot, symboliska hatuttryck och andra hatbrottskategorier ingår inte.</universe>
        <dataKind xml:lang="en">Numeric</dataKind>
        <dataKind xml:lang="en">Text</dataKind>
        <dataKind xml:lang="en">Geospatial</dataKind>
      </sumDscr>
    </stdyInfo>
    <method>
      <dataColl>
        <timeMeth xml:lang="en">Longitudinal: Cohort/Event-based<concept vocab="DDI Time Method" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/TimeMethod/1.2.3?languageVersion=en-1.2.3">Longitudinal: Cohort/Event-based</concept></timeMeth>
        <timeMeth xml:lang="sv">Longitudinell: Kohort/Händelsebaserad<concept vocab="DDI Time Method" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/TimeMethod/1.2.3?languageVersion=sv-1.2.3">Longitudinell: Kohort/Händelsebaserad</concept></timeMeth>
        <sampProc xml:lang="en">This dataset is a complete enumeration of all police-reported and hate-crime-flagged incidents of xenophobic physical violence in Sweden from 2009–2022 (2,522 cases). No sampling was performed; the full universe of eligible events was included. Inclusion required actual or attempted physical violence with an explicitly stated or clearly inferable xenophobic motive, while non-violent and other hate-crime categories were excluded.<concept vocab="DDI Sampling Procedure" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/SamplingProcedure/2.0.1?languageVersion=en-2.0.1">This dataset is a complete enumeration of all police-reported and hate-crime-flagged incidents of xenophobic physical violence in Sweden from 2009–2022 (2,522 cases). No sampling was performed; the full universe of eligible events was included. Inclusion required actual or attempted physical violence with an explicitly stated or clearly inferable xenophobic motive, while non-violent and other hate-crime categories were excluded.</concept></sampProc>
        <sampProc xml:lang="sv">Datasetet utgör en totalundersökning av alla polisanmälda och hatbrottsflaggade fall av främlingsfientligt fysiskt våld i Sverige 2009–2022 (2 522 fall). Ingen stickprovstagning användes; samtliga relevanta händelser inkluderades. Endast fall med faktisk eller försök till fysisk våldsanvändning och tydligt främlingsfientligt motiv ingick, medan icke-våldsbrott och andra hatbrottstyper exkluderades.<concept vocab="DDI Sampling Procedure" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/SamplingProcedure/2.0.1?languageVersion=sv-2.0.1">Datasetet utgör en totalundersökning av alla polisanmälda och hatbrottsflaggade fall av främlingsfientligt fysiskt våld i Sverige 2009–2022 (2 522 fall). Ingen stickprovstagning användes; samtliga relevanta händelser inkluderades. Endast fall med faktisk eller försök till fysisk våldsanvändning och tydligt främlingsfientligt motiv ingick, medan icke-våldsbrott och andra hatbrottstyper exkluderades.</concept></sampProc>
        <sampProc xml:lang="en">Total universe/Complete enumeration<concept vocab="DDI Sampling Procedure" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/SamplingProcedure/2.0.1?languageVersion=en-2.0.1">Total universe/Complete enumeration</concept></sampProc>
        <sampProc xml:lang="sv">Hela populationen/total räkning<concept vocab="DDI Sampling Procedure" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/SamplingProcedure/2.0.1?languageVersion=sv-2.0.1">Hela populationen/total räkning</concept></sampProc>
        <collMode xml:lang="en">The dataset was obtained from the Swedish Police as an extract of police reports. While the reports are subject to public access under Swedish transparency law, full access to all relevant cases was provided through collaboration with the Police Authority.<concept vocab="DDI Mode of Collection" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/ModeOfCollection/5.0.0?languageVersion=en-5.0.0">The dataset was obtained from the Swedish Police as an extract of police reports. While the reports are subject to public access under Swedish transparency law, full access to all relevant cases was provided through collaboration with the Police Authority.</concept></collMode>
        <collMode xml:lang="sv">Datasatsen erhölls från polisen som ett utdrag av polisanmälningar. Anmälningarna omfattas av offentlighetsprincipen, men fullt tillträde till samtliga relevanta anmälningar möjliggjordes genom ett samarbete med Polismyndigheten.<concept vocab="DDI Mode of Collection" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/ModeOfCollection/5.0.0?languageVersion=sv-5.0.0">Datasatsen erhölls från polisen som ett utdrag av polisanmälningar. Anmälningarna omfattas av offentlighetsprincipen, men fullt tillträde till samtliga relevanta anmälningar möjliggjordes genom ett samarbete med Polismyndigheten.</concept></collMode>
        <collMode xml:lang="en">Registry extract and/or access to biobank sample<concept vocab="DDI Mode of Collection" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/ModeOfCollection/5.0.0?languageVersion=en-5.0.0">Registry extract and/or access to biobank sample</concept></collMode>
        <collMode xml:lang="sv">Registerutdrag och/eller tillgång till prov i biobank<concept vocab="DDI Mode of Collection" vocabURI="https://vocabularies.cessda.eu/v2/vocabularies/ModeOfCollection/5.0.0?languageVersion=sv-5.0.0">Registerutdrag och/eller tillgång till prov i biobank</concept></collMode>
      </dataColl>
    </method>
    <dataAccs>
      <useStmt>
        <restrctn xml:lang="en">Access to data through SND. Access to data is restricted.</restrctn>
        <restrctn xml:lang="sv">Åtkomst till data via SND. Tillgång till data är begränsad.</restrctn>
        <conditions elementVersion="info:eu-repo-Access-Terms vocabulary">restrictedAccess</conditions>
      </useStmt>
    </dataAccs>
    <othrStdyMat>
      <relPubl>
        <citation>
          <titlStmt>
            <titl xml:lang="sv">Lundstedt, M., Törnberg, A., Vallström, V., &amp; Wahlström, M. (2025). Främlingsfientligt våld i Sverige 2009–2022. https://gup.ub.gu.se/publication/350049</titl>
            <parTitl xml:lang="en">Lundstedt, M., Törnberg, A., Vallström, V., &amp; Wahlström, M. (2025). Främlingsfientligt våld i Sverige 2009–2022. https://gup.ub.gu.se/publication/350049</parTitl>
            <IDNo agency="Handle">2077/86880</IDNo>
            <IDNo agency="ISBN">9789187876790</IDNo>
            <IDNo agency="SWEPUB">oai:gup.ub.gu.se/350049</IDNo>
          </titlStmt>
          <distStmt>
            <distDate date="2025">2025</distDate>
          </distStmt>
          <any xml:lang="en" xmlns="http://purl.org/dc/elements/1.1/">oai:gup.ub.gu.se/350049</any>
        </citation>
      </relPubl>
      <relPubl />
    </othrStdyMat>
  </stdyDscr>
</codeBook>