beagle r4644 - in trunk/beagle/Util: . SemWeb



Author: dbera
Date: Thu Mar 27 12:40:13 2008
New Revision: 4644
URL: http://svn.gnome.org/viewvc/beagle?rev=4644&view=rev

Log:
Remove some unneeded dependencies; I specially hate System.Web (to know why run "monop2 -r:System.Web --refs".


Modified:
   trunk/beagle/Util/Makefile.am
   trunk/beagle/Util/SemWeb/RdfReader.cs
   trunk/beagle/Util/SemWeb/Store.cs

Modified: trunk/beagle/Util/Makefile.am
==============================================================================
--- trunk/beagle/Util/Makefile.am	(original)
+++ trunk/beagle/Util/Makefile.am	Thu Mar 27 12:40:13 2008
@@ -130,7 +130,6 @@
 	$(srcdir)/SemWeb/Statement.cs           \
 	$(srcdir)/SemWeb/Store.cs               \
 	$(srcdir)/SemWeb/MemoryStore.cs         \
-	$(srcdir)/SemWeb/SQLStore.cs            \
 	$(srcdir)/SemWeb/RdfReader.cs           \
 	$(srcdir)/SemWeb/RdfXmlReader.cs        \
 	$(srcdir)/SemWeb/N3Reader.cs            \
@@ -143,17 +142,18 @@
 	$(srcdir)/SemWeb/Inference.cs           \
 	$(srcdir)/SemWeb/RDFS.cs                \
 	$(srcdir)/SemWeb/Algos.cs               \
-	$(srcdir)/SemWeb/Remote.cs              \
 	$(srcdir)/SemWeb/XPathSemWebNavigator.cs\
 	$(srcdir)/QueryKeywordMapping.cs
 
+# To reduce dependencies, we don't build this
+IGNORED_SEMWEB_CSFILES =			\
+	$(srcdir)/SemWeb/Remote.cs
+
 UTIL_ASSEMBLIES =				\
 	$(BEAGLED_LIBS)				\
 	$(NDESK_DBUS_GLIB_LIBS)			\
-	-r:System.Data				\
 	-r:Mono.Data.Sqlite			\
 	-r:Mono.Posix				\
-	-r:System.Web				\
 	-r:ICSharpCode.SharpZipLib
 
 if ENABLE_THUNDERBIRD
@@ -249,6 +249,7 @@
 	$(srcdir)/Thunderbird.cs
 
 EXTRA_DIST =			\
+	$(IGNORED_SEMWEB_CSFILES)\
 	$(EXTSTR_IN)		\
 	$(UTIL_CSFILES)		\
 	$(UI_UTIL_CSFILES)	\

Modified: trunk/beagle/Util/SemWeb/RdfReader.cs
==============================================================================
--- trunk/beagle/Util/SemWeb/RdfReader.cs	(original)
+++ trunk/beagle/Util/SemWeb/RdfReader.cs	Thu Mar 27 12:40:13 2008
@@ -1,7 +1,6 @@
 using System;
 using System.Collections;
 using System.IO;
-using System.Web;
  
 namespace SemWeb {
 	public class ParserException : ApplicationException {
@@ -74,6 +73,7 @@
 			}
 		}
 		
+		/*
 		public static RdfReader LoadFromUri(Uri webresource) {
 			// TODO: Add Accept header for HTTP resources.
 			
@@ -106,6 +106,7 @@
 
 			throw new InvalidOperationException("Could not determine the RDF format of the resource.");
 		}
+		*/
 		
 		internal static TextReader GetReader(string file) {
 			if (file == "-") return Console.In;

Modified: trunk/beagle/Util/SemWeb/Store.cs
==============================================================================
--- trunk/beagle/Util/SemWeb/Store.cs	(original)
+++ trunk/beagle/Util/SemWeb/Store.cs	Thu Mar 27 12:40:13 2008
@@ -1,7 +1,5 @@
 using System;
 using System.Collections;
-using System.Data;
-
 using SemWeb.Util;
 
 namespace SemWeb {
@@ -159,8 +157,8 @@
 					return Activator.CreateInstance(ttype, new object[] { spec, table });
 				/*case "bdb":
 					return new SemWeb.Stores.BDBStore(spec);*/
-				case "sparql-http":
-					return new SemWeb.Remote.SparqlHttpSource(spec);
+				/*case "sparql-http":
+					return new SemWeb.Remote.SparqlHttpSource(spec);*/
 				case "class":
 					ttype = Type.GetType(spec);
 					if (ttype == null)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]