<commit_before><!DOCTYPE html>
<html lang="en">
<head>
	<title>SPARQL Editor</title>
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/style.css" rel="stylesheet">
	<style>


	</style>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script src="js/jquery-latest.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/config.js"></script>
	<script src="js/urlencode.js"></script>
	<script src="js/xml2json.js"></script>

	<script>

		var sensor_module = {
			title : "Sensors",
			s : [
					["?", "?"],					
					["sensor 1", "?sensor1"],
					["sensor 2", "?sensor2"],
					["sensor 3", "?sensor3"],
					["light", "?light"],
				],
			mapping :	[
							["?", "?"],
							["has a", "<http://purl.oclc.org/NET/ssnx/ssn#attachedSystem>", 
								[
									["?", "?hasA", "?hasA"],
									["light sensor","?light .\n\t?light <http://spitfire-project.eu/ontology/ns/obs>  <http://spitfire-project.eu/property/Light>"],
									["fan","?fan.\n\t?fan <http://www.w3.org/2000/01/rdf-schema#type> <http://purl.oclc.org/NET/ssnx/ssn#Fan>", "?fan"],
									["radio","?radio.\n\t?radio <http://www.w3.org/2000/01/rdf-schema#type> <http://purl.oclc.org/NET/ssnx/ssn#Switch>", "?radio"]
								]
							],
							["is in","<http://purl.oclc.org/NET/ssnx/ssn#featureOfInterest>",
								[
									["?", "?featureOfInterest"],
									["room 1", "<http://spitfire-project.eu/foi/room1>"],
									["room 2", "<http://spitfire-project.eu/foi/room2>"],
									["kitchen", "<http://spitfire-project.eu/foi/kitchen>"],
									["living room", "<http://spitfire-project.eu/foi/livingroom>"]
								]
							],
/*
							["has type", "<http://www.w3.org/2000/01/rdf-schema#type>",
								[
									["?", "?type"],
									["fan", "<http://purl.oclc.org/NET/ssnx/ssn#Fan>"],
									["switch", "<http://purl.oclc.org/NET/ssnx/ssn#Switch>"]
								]
							],
							["has value", "<http://spitfire-project.eu/ontology/ns/value>",
								[
									["?", "?value"]
								]
							],
*/
							["is", "<http://spitfire-project.eu/ontology/ns/value> ?lightValue . ",
								[
									["on",  "FILTER(?lightValue > '200')"],
									["off", "FILTER(?lightValue < '200')"]
								]
							]
						],
			isActive : true
		}

		var modul2 = {
			title : "Calendar",
			mapping : []
		}

		var weather_module = {
			title : "Weather",
			s : [
					["temperatur", ""],
				],
			mapping :	[
							["is greater than", "<http://www.iti.uni-luebeck.de/time>	<http://www.iti.uni-luebeck.de/is> ?time .\n\t?forecast <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://spitfire-project.eu/ontology/ns/sn/temperatureForecast> .\n\t?forecast <http://spitfire-project.eu/ontology/ns/sn/time_start> ?startForecast . FILTER(?time >= ?startForecast)\n\t?forecast <http://spitfire-project.eu/ontology/ns/sn/time_end> ?endForecast . FILTER(?time <= ?endForecast)\n\t?forecast <http://spitfire-project.eu/ontology/ns/value> ?value . ",<commit_msg>Small update.<commit_after><!DOCTYPE html>
<html lang="en">
<head>
	<title>SPARQL Editor</title>
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/style.css" rel="stylesheet">
	<style>


	</style>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script src="js/jquery-latest.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/config.js"></script>
	<script src="js/urlencode.js"></script>
	<script src="js/xml2json.js"></script>

	<script>

		var sensor_module = {
			title : "Sensors",
			s : [
					["?", "?"],					
					["sensor 1", "?sensor1"],
					["sensor 2", "?sensor2"],
					["sensor 3", "?sensor3"],
					["light", "?light"],
				],
			mapping :	[
							["?", "?"],
							["has a", "<http://purl.oclc.org/NET/ssnx/ssn#attachedSystem>", 
								[
									["?", "?hasA", "?hasA"],
									["light sensor","?light .\n\t?light <http://spitfire-project.eu/ontology/ns/obs>  <http://spitfire-project.eu/property/Light>"],
									["fan","?fan.\n\t?fan <http://www.w3.org/2000/01/rdf-schema#type> <http://purl.oclc.org/NET/ssnx/ssn#Fan>", "?fan"],
									["radio","?radio.\n\t?radio <http://www.w3.org/2000/01/rdf-schema#type> <http://purl.oclc.org/NET/ssnx/ssn#Switch>", "?radio"]
								]
							],
							["is in","<http://purl.oclc.org/NET/ssnx/ssn#featureOfInterest>",
								[
									["?", "?featureOfInterest"],
									["room 1", "<http://spitfire-project.eu/foi/room1>"],
									["room 2", "<http://spitfire-project.eu/foi/room2>"],
									["kitchen", "<http://spitfire-project.eu/foi/kitchen>"],
									["living room", "<http://spitfire-project.eu/foi/livingroom>"]
								]
							],
/*
							["has type", "<http://www.w3.org/2000/01/rdf-schema#type>",
								[
									["?", "?type"],
									["fan", "<http://purl.oclc.org/NET/ssnx/ssn#Fan>"],
									["switch", "<http://purl.oclc.org/NET/ssnx/ssn#Switch>"]
								]
							],
							["has value", "<http://spitfire-project.eu/ontology/ns/value>",
								[
									["?", "?value"]
								]
							],
*/
							["is", "<http://spitfire-project.eu/ontology/ns/value> ?lightValue . ",
								[
									["?", ""],
									["on",  "FILTER(?lightValue > '200')"],
									["off", "FILTER(?lightValue < '200')"]
								]
							]
						],
			isActive : true
		}

		var modul2 = {
			title : "Calendar",
			mapping : []
		}

		var weather_module = {
			title : "Weather",
			s : [
					["temperatur", ""],
				],
			mapping :	[
							["is greater than", "<http://www.iti.uni-luebeck.de/time>	<http://www.iti.uni-luebeck.de/is> ?time .\n\t?forecast <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://spitfire-project.eu/ontology/ns/sn/temperatureForecast> .\n\t?forecast <http://spitfire-project.eu/ontology/ns/sn/time_start> ?startForecast . FILTER(?time >= ?startForecast)\n\t?forecast <http://spitfire-project.eu/ontology/ns/sn/time_end> ?endForecast . FILTER(?time <= ?endForecast)\n\t?forecast <http://spitfire-project.eu/ontology/ns/value> ?value . ",
{'fraction_non_alphanumeric': 0.24378109452736318, 'fraction_numerical': 0.01625207296849088, 'mean_word_length': 2.6243990384615383, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 12, 'xml': 2}, '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': '55162', 'n_tokens_mistral': 3049, 'n_tokens_neox': 2273, 'n_words': 269}