<commit_before>package com.ihtsdo.snomed.service.serialiser;

import java.io.IOException;
import java.io.Writer;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.concurrent.TimeUnit;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.common.base.Stopwatch;
import com.ihtsdo.snomed.model.Concept;
import com.ihtsdo.snomed.model.Description;
import com.ihtsdo.snomed.model.OntologyVersion;
import com.ihtsdo.snomed.model.Statement;

public class MetaSnomedSerialiser extends BaseSnomedSerialiser{
    private static final String LINE_ENDING = " .\n";

    private final Logger LOG = LoggerFactory.getLogger(MetaSnomedSerialiser.class);
    
    private static final String LANGUAGE = "@en-gb";
    
    private final static String NS_SNOMED_BASE = "http://snomedtools.info/ns/snomed/";
    private final static String GRAPH_NAME = NS_SNOMED_BASE + "graph#metasnomed";
    
    private static final String NS_XML_SCHEMA_DATATYPE = "http://www.w3.org/2001/XMLSchema#";
    private static final String NS_XML_SCHEMA_DATATYPE_IDENTIFIER = "xsd";
    private static final String XML_SCHEMA_DATATYPE_BOOLEAN = "^^" + NS_XML_SCHEMA_DATATYPE_IDENTIFIER + ":boolean";
    private static final String XML_SCHEMA_DATATYPE_DATE = "^^" + NS_XML_SCHEMA_DATATYPE_IDENTIFIER + ":date";
    private static final String XML_SCHEMA_DATATYPE_INTEGER = "^^" + NS_XML_SCHEMA_DATATYPE_IDENTIFIER + ":int";
    
    private final static String NS_SNOMED_TERM = NS_SNOMED_BASE + "term#";
    private final static String NS_SNOMED_TERM_IDENTIFIER = "sn";
    
    private final static String NS_SNOMED_CONCEPT = NS_SNOMED_BASE + "concept#";
    private final static String NS_SNOMED_CONCEPT_IDENTIFIER = "c";
    
    private final static String NS_SNOMED_DESCRIPTION = NS_SNOMED_BASE + "description#";
    private final static String NS_SNOMED_DESCRIPTION_IDENTIFIER = "d";
    
    private final static String NS_SNOMED_STATEMENT = NS_SNOMED_BASE + "statement#";
    private final static String NS_SNOMED_STATEMENT_IDENTIFIER = "s";    
    
    private final static String NS_RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
    private final static String NS_RDF_IDENTIFIER = "rdf";
    
    private final static String NS_RDFS = "http://www.w3.org/2000/01/rdf-schema#";<commit_msg>changed base uri<commit_after>package com.ihtsdo.snomed.service.serialiser;

import java.io.IOException;
import java.io.Writer;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.concurrent.TimeUnit;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.common.base.Stopwatch;
import com.ihtsdo.snomed.model.Concept;
import com.ihtsdo.snomed.model.Description;
import com.ihtsdo.snomed.model.OntologyVersion;
import com.ihtsdo.snomed.model.Statement;

public class MetaSnomedSerialiser extends BaseSnomedSerialiser{
    private static final String LINE_ENDING = " .\n";

    private final Logger LOG = LoggerFactory.getLogger(MetaSnomedSerialiser.class);
    
    private static final String LANGUAGE = "@en-gb";
    
    private final static String NS_SNOMED_BASE = "http://snomed.info/";
    private final static String GRAPH_NAME = NS_SNOMED_BASE + "graph#metasnomed";
    
    private static final String NS_XML_SCHEMA_DATATYPE = "http://www.w3.org/2001/XMLSchema#";
    private static final String NS_XML_SCHEMA_DATATYPE_IDENTIFIER = "xsd";
    private static final String XML_SCHEMA_DATATYPE_BOOLEAN = "^^" + NS_XML_SCHEMA_DATATYPE_IDENTIFIER + ":boolean";
    private static final String XML_SCHEMA_DATATYPE_DATE = "^^" + NS_XML_SCHEMA_DATATYPE_IDENTIFIER + ":date";
    private static final String XML_SCHEMA_DATATYPE_INTEGER = "^^" + NS_XML_SCHEMA_DATATYPE_IDENTIFIER + ":int";
    
    private final static String NS_SNOMED_TERM = NS_SNOMED_BASE + "term#";
    private final static String NS_SNOMED_TERM_IDENTIFIER = "sn";
    
    private final static String NS_SNOMED_CONCEPT = NS_SNOMED_BASE + "sct/concept#";
    private final static String NS_SNOMED_CONCEPT_IDENTIFIER = "c";
    
    private final static String NS_SNOMED_DESCRIPTION = NS_SNOMED_BASE + "description#";
    private final static String NS_SNOMED_DESCRIPTION_IDENTIFIER = "d";
    
    private final static String NS_SNOMED_STATEMENT = NS_SNOMED_BASE + "statement#";
    private final static String NS_SNOMED_STATEMENT_IDENTIFIER = "s";    
    
    private final static String NS_RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
    private final static String NS_RDF_IDENTIFIER = "rdf";
    
    private final static String NS_RDFS = "http://www.w3.org/2000/01/rdf-schema#";
{'fraction_non_alphanumeric': 0.09212765957446808, 'fraction_numerical': 0.00978723404255319, 'mean_word_length': 4.650240384615385, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '381465', 'n_tokens_mistral': 1628, 'n_tokens_neox': 1589, 'n_words': 333}