<commit_before>/*  $Id$

    Part of SWI-Prolog RDF parser

    Author:  <NAME>
    E-mail:  <EMAIL>
    WWW:     http://www.swi.psy.uva.nl/projects/SWI-Prolog/
    Copying: LGPL-2.  See the file COPYING or http://www.gnu.org

    Copyright (C) 1990-2000 SWI, University of Amsterdam. All rights reserved.
*/


:- use_module(library(cgi)).
:- use_module(library(sgml)).
:- use_module(rdf).
:- use_module(rewrite).
:- use_module(pretty_print).

term_expansion(F, T) :- rew_term_expansion(F, T).
goal_expansion(F, T) :- rew_goal_expansion(F, T).

:- dynamic new_rdf_namespace/1.

parse(Text, RDFTerm, Triples) :-
	parse_atom(Text, Term),
	(   find_rdf(Term, RDFTerm)<commit_msg>* Fixed undefined rdf_namespace/1 reference<commit_after>/*  $Id$

    Part of SWI-Prolog RDF parser

    Author:  <NAME>
    E-mail:  <EMAIL>
    WWW:     http://www.swi.psy.uva.nl/projects/SWI-Prolog/
    Copying: LGPL-2.  See the file COPYING or http://www.gnu.org

    Copyright (C) 1990-2000 SWI, University of Amsterdam. All rights reserved.
*/


:- use_module(library(cgi)).
:- use_module(library(sgml)).
:- use_module(rdf).
:- use_module(rdf_parser).
:- use_module(rewrite).
:- use_module(pretty_print).

term_expansion(F, T) :- rew_term_expansion(F, T).
goal_expansion(F, T) :- rew_goal_expansion(F, T).

:- dynamic new_rdf_namespace/1.

parse(Text, RDFTerm, Triples) :-
	parse_atom(Text, Term),
	(   find_rdf(Term, RDFTerm)
{'fraction_non_alphanumeric': 0.15826827537260468, 'fraction_numerical': 0.014904187366926898, 'mean_word_length': 3.607843137254902, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6315514', 'n_tokens_mistral': 596, 'n_tokens_neox': 553, 'n_words': 110}