├── .gitignore ├── Acknowledgments.txt ├── ChangeLog.txt ├── GraphBenchmarker ├── GraphBenchmarker.csproj ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── Test │ ├── Actual │ │ ├── CountTriplesTest.cs │ │ ├── EnumerateTriplesTest.cs │ │ ├── LoadDataTest.cs │ │ ├── MemoryUsageCheck.cs │ │ └── SubjectLookupTest.cs │ ├── BaseTest.cs │ ├── ITest.cs │ ├── TestCase.cs │ ├── TestResult.cs │ ├── TestSet.cs │ └── TestSuite.cs ├── app.config ├── fclsGraphBenchmarker.Designer.cs ├── fclsGraphBenchmarker.cs ├── fclsGraphBenchmarker.resx ├── fclsTestRunner.Designer.cs ├── fclsTestRunner.cs ├── fclsTestRunner.resx └── packages.config ├── LICENSE ├── Libraries ├── editor.wpf │ ├── AutoComplete │ │ └── WpfCompletionData.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Syntax │ │ ├── CustomHighlightingBrush.cs │ │ ├── FakeTextRunContext.cs │ │ ├── ValidationErrorElementGenerator.cs │ │ ├── ValidationErrorLineText.cs │ │ ├── n3.xshd │ │ ├── nquads.xshd │ │ ├── nquads11.xshd │ │ ├── ntriples.xshd │ │ ├── ntriples11.xshd │ │ ├── rdfjson.xshd │ │ ├── rdfxml.xshd │ │ ├── sparql-query-11.xshd │ │ ├── sparql-query.xshd │ │ ├── sparql-results-json.xshd │ │ ├── sparql-results-xml.xshd │ │ ├── sparql-update.xshd │ │ ├── trig.xshd │ │ ├── trix.xshd │ │ ├── turtle.xshd │ │ ├── turtle11.xshd │ │ └── xhtml-rdfa.xshd │ ├── WpfEditorAdaptor.cs │ ├── WpfEditorFactory.cs │ ├── WpfFindAndReplace.cs │ ├── WpfHighlightingManager.cs │ ├── WpfVisualOptions.cs │ ├── app.config │ ├── packages.config │ └── rdfEditor.Core.Wpf.csproj ├── editor │ ├── AutoComplete │ │ ├── AutoCompleteDefinition.cs │ │ ├── AutoCompleteManager.cs │ │ ├── AutoCompleteState.cs │ │ ├── BaseAutoCompleter.cs │ │ ├── Data │ │ │ ├── BaseCompletionData.cs │ │ │ ├── BaseDeclarationData.cs │ │ │ ├── BlankNodeData.cs │ │ │ ├── DefaultPrefixDeclarationData.cs │ │ │ ├── ICompletionData.cs │ │ │ ├── KeywordData.cs │ │ │ ├── NewBlankNodeData.cs │ │ │ ├── PrefixCompletionData.cs │ │ │ ├── QNameData.cs │ │ │ └── VariableData.cs │ │ ├── IAutoCompleter.cs │ │ ├── NTriplesAutoCompleter.cs │ │ ├── NamespaceTerm.cs │ │ ├── Notation3AutoCompleter.cs │ │ ├── OffsetScopedNamespaceMapper.cs │ │ ├── SparqlAutoCompleter.cs │ │ ├── SparqlUpdateAutoCompleter.cs │ │ ├── TermDetectionHandler.cs │ │ ├── TurtleAutoCompleter.cs │ │ └── Vocabularies │ │ │ ├── VocabularyDefinition.cs │ │ │ ├── dc.ttl │ │ │ ├── dcterms.ttl │ │ │ ├── dnr-ft.ttl │ │ │ ├── dnr.ttl │ │ │ ├── doap.ttl │ │ │ ├── foaf.ttl │ │ │ ├── geo.ttl │ │ │ ├── gr.ttl │ │ │ ├── lfn.ttl │ │ │ ├── owl.ttl │ │ │ ├── rdf.ttl │ │ │ ├── rdfs.ttl │ │ │ ├── sioc.ttl │ │ │ ├── skos.ttl │ │ │ ├── vann.ttl │ │ │ ├── vcard.ttl │ │ │ ├── vs.ttl │ │ │ └── xsd.ttl │ ├── BaseTextEditorAdaptor.cs │ ├── Document.cs │ ├── DocumentEvents.cs │ ├── DocumentManager.cs │ ├── Editor.cs │ ├── EditorManager.cs │ ├── FindAndReplace.cs │ ├── GlobalOptions.cs │ ├── ITextEditorAdaptor.cs │ ├── ITextEditorAdaptorFactory.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Selection │ │ ├── BaseSelector.cs │ │ ├── DefaultSelector.cs │ │ ├── ISymbolSelector.cs │ │ └── WhiteSpaceSelector.cs │ ├── Syntax │ │ ├── SyntaxDefinition.cs │ │ ├── SyntaxExtensions.cs │ │ └── SyntaxManager.cs │ ├── TextEditorEvents.cs │ ├── VisualOptions.cs │ ├── app.config │ ├── packages.config │ └── rdfEditor.Core.csproj ├── gui.winforms │ ├── Constants.cs │ ├── Controls │ │ ├── DnrRichTextBox.cs │ │ ├── FormatterControl.Designer.cs │ │ ├── FormatterControl.cs │ │ ├── FormatterControl.resx │ │ ├── GraphViewerControl.cs │ │ ├── GraphViewerControl.designer.cs │ │ ├── GraphViewerControl.resx │ │ ├── QueryResultsControl.Designer.cs │ │ ├── QueryResultsControl.cs │ │ ├── QueryResultsControl.resx │ │ ├── ResultSetViewerControl.cs │ │ ├── ResultSetViewerControl.designer.cs │ │ └── ResultSetViewerControl.resx │ ├── Events.cs │ ├── Forms │ │ ├── ExportGraphOptionsForm.Designer.cs │ │ ├── ExportGraphOptionsForm.cs │ │ ├── ExportGraphOptionsForm.resx │ │ ├── ExportResultSetOptionsForm.Designer.cs │ │ ├── ExportResultSetOptionsForm.cs │ │ ├── ExportResultSetOptionsForm.resx │ │ ├── GraphViewerForm.Designer.cs │ │ ├── GraphViewerForm.cs │ │ ├── GraphViewerForm.resx │ │ ├── ResultSetViewerForm.Designer.cs │ │ ├── ResultSetViewerForm.cs │ │ ├── ResultSetViewerForm.resx │ │ ├── VisualiseGraphForm.Designer.cs │ │ ├── VisualiseGraphForm.cs │ │ └── VisualiseGraphForm.resx │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── app.config │ ├── dotNetRDF.WinForms.csproj │ └── packages.config └── storemanager.core │ ├── Connections │ ├── BaseConnectionDefinition.cs │ ├── BaseConnectionsGraph.cs │ ├── BaseServerConnection.cs │ ├── BuiltIn │ │ ├── AllegroGraphConnection.cs │ │ ├── BaseStardogConnectionDefinition.cs │ │ ├── DatasetFileConnectionDefinition.cs │ │ ├── FourStoreConnectionDefinition.cs │ │ ├── FusekiConnectionDefinition.cs │ │ ├── InMemoryConnectionDefinition.cs │ │ ├── ReadWriteSparqlConnectionDefinition.cs │ │ ├── SesameConnectionDefinition.cs │ │ ├── SparqlGraphStoreConnectionDefinition.cs │ │ ├── SparqlQueryConnectionDefinition.cs │ │ ├── StardogConnectionDefinition.cs │ │ └── VirtuosoConnectionDefinition.cs │ ├── Connection.cs │ ├── ConnectionAttribute.cs │ ├── ConnectionDefinitionManager.cs │ ├── ConnectionInfo.cs │ ├── ConnectionInstancePool.cs │ ├── ConnectionsGraph.cs │ ├── IConnectionDefinition.cs │ ├── IConnectionsGraph.cs │ └── StoreManager.ttl │ ├── Extensions.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── StoreManager.Core.csproj │ ├── Tasks │ ├── BaseImportTask.cs │ ├── BaseTask.cs │ ├── CopyMoveRenameTask.cs │ ├── CountTriplesTask.cs │ ├── CreateStoreTask.cs │ ├── DeleteGraphTask.cs │ ├── DeleteStoreTask.cs │ ├── ExportTask.cs │ ├── GenerateEntitiesQueryTask.cs │ ├── GetStoreTask.cs │ ├── ITask.cs │ ├── ImportTasks.cs │ ├── ListGraphsTasks.cs │ ├── ListStoresTask.cs │ ├── PreviewGraphTask.cs │ ├── QueryTask.cs │ ├── TaskExtensions.cs │ ├── UpdateTask.cs │ └── ViewGraphTask.cs │ ├── app.config │ └── packages.config ├── ReadMe.txt ├── Toolkit Icons.icl ├── Toolkit ├── SparqlGUI │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── SparqlGUI.csproj │ ├── app.config │ ├── database.ico │ ├── database_table.ico │ ├── default.rq │ ├── fclsExplanation.Designer.cs │ ├── fclsExplanation.cs │ ├── fclsExplanation.resx │ ├── fclsInspect.Designer.cs │ ├── fclsInspect.cs │ ├── fclsInspect.resx │ ├── fclsSparqlGui.Designer.cs │ ├── fclsSparqlGui.cs │ ├── fclsSparqlGui.resx │ ├── fclsStylesheetPicker.Designer.cs │ ├── fclsStylesheetPicker.cs │ ├── fclsStylesheetPicker.resx │ ├── packages.config │ └── regex.rq ├── rdfConvert │ ├── ConversionExtensions.cs │ ├── ConversionOption.cs │ ├── ConversionProgressHandler.cs │ ├── Inputs │ │ ├── BaseInput.cs │ │ ├── FileInput.cs │ │ ├── IInput.cs │ │ └── UriInput.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RapperConvert.cs │ ├── RdfConvert.cs │ ├── SaveOnCompletionHandler.cs │ ├── WriteToFileHandler.cs │ ├── app.config │ ├── packages.config │ ├── page_refresh.ico │ ├── rdfConvert.csproj │ └── recycled.ico ├── rdfDBStudio │ ├── About.xaml │ ├── About.xaml.cs │ ├── App.xaml │ ├── App.xaml.cs │ ├── Icons │ │ └── player_play.png │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── Studio.xaml │ ├── Studio.xaml.cs │ ├── app.config │ ├── packages.config │ └── rdfDBStudio.csproj ├── rdfEditor.Wpf │ ├── About.xaml │ ├── About.xaml.cs │ ├── App.xaml │ ├── App.xaml.cs │ ├── AppearanceSettings.xaml │ ├── AppearanceSettings.xaml.cs │ ├── Commands.cs │ ├── ComplexInputBinding.cs │ ├── ComplexInputGesture.cs │ ├── ComplexInputGestureConverter.cs │ ├── Controls │ │ ├── LiteralNodeControl.xaml │ │ ├── LiteralNodeControl.xaml.cs │ │ ├── UriNodeControl.xaml │ │ └── UriNodeControl.xaml.cs │ ├── DocumentPaginatorWrapper.cs │ ├── EditorWindow.xaml │ ├── EditorWindow.xaml.cs │ ├── FileAssociations.xaml │ ├── FileAssociations.xaml.cs │ ├── FindReplace.xaml │ ├── FindReplace.xaml.cs │ ├── GoToLine.xaml │ ├── GoToLine.xaml.cs │ ├── MruList.cs │ ├── OpenQueryResults.xaml │ ├── OpenQueryResults.xaml.cs │ ├── OpenUri.xaml │ ├── OpenUri.xaml.cs │ ├── PrintPreview.xaml │ ├── PrintPreview.xaml.cs │ ├── Printing.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── RdfWriterOptionsWindow.xaml │ ├── RdfWriterOptionsWindow.xaml.cs │ ├── ResultSetWindow.xaml │ ├── ResultSetWindow.xaml.cs │ ├── TriplesWindow.xaml │ ├── TriplesWindow.xaml.cs │ ├── app.config │ ├── package_editors.ico │ ├── packages.config │ ├── page_edit.ico │ └── rdfEditor.Wpf.csproj ├── rdfOptStats │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RdfOptimiserStats.cs │ ├── StatsHandler.cs │ ├── app.config │ ├── packages.config │ └── rdfOptStats.csproj ├── rdfQuery │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RdfQuery.cs │ ├── RoqetQuery.cs │ ├── app.config │ ├── database_table.ico │ ├── kexi_kexi.ico │ ├── packages.config │ └── rdfQuery.csproj ├── rdfServer │ ├── HtmlTextWriter.cs │ ├── HtmlTextWriterAttribute.cs │ ├── HtmlTextWriterStyle.cs │ ├── HtmlTextWriterTag.cs │ ├── HttpUtility.cs │ ├── ListenerContext.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RdfServerOptions.cs │ ├── RdfServerPathResolver.cs │ ├── SparqlServerHandler.cs │ ├── StartupModule.cs │ ├── app.config │ ├── default.ttl │ ├── packages.config │ └── rdfServer.csproj ├── rdfServerGUI │ ├── ConsoleCapture.cs │ ├── IServerHarness.cs │ ├── MonitorLogger.cs │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── ServerMonitor.Designer.cs │ ├── ServerMonitor.cs │ ├── ServerMonitor.resx │ ├── app.config │ ├── fclsServerManager.Designer.cs │ ├── fclsServerManager.cs │ ├── fclsServerManager.resx │ ├── packages.config │ ├── rdfServerGUI.csproj │ └── servercontrol.html ├── rdfWebDeploy │ ├── Deploy.cs │ ├── DllUpdate.cs │ ├── DllVerify.cs │ ├── Extract.cs │ ├── List.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RdfWebDeploy.cs │ ├── Test.cs │ ├── Vocab.cs │ ├── XmlDeploy.cs │ ├── app.config │ ├── ark.ico │ ├── packages.config │ ├── rdfWebDeploy.csproj │ └── world_go.ico ├── soh │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── app.config │ ├── packages.config │ └── soh.csproj └── storemanager │ ├── Controls │ ├── ConnectionManagementListView.Designer.cs │ ├── ConnectionManagementListView.cs │ ├── ConnectionManagementListView.resx │ ├── ConnectionSettingsGrid.Designer.cs │ ├── ConnectionSettingsGrid.cs │ ├── ConnectionSettingsGrid.resx │ ├── ControlEvents.cs │ └── ListViewColumnSorter.cs │ ├── Dialogues │ ├── CloseConnectionDialogue.Designer.cs │ ├── CloseConnectionDialogue.cs │ ├── CloseConnectionDialogue.resx │ ├── CopyMoveDialogue.Designer.cs │ ├── CopyMoveDialogue.cs │ ├── CopyMoveDialogue.resx │ ├── CopyMoveRenameGraphDialogue.Designer.cs │ ├── CopyMoveRenameGraphDialogue.cs │ ├── CopyMoveRenameGraphDialogue.resx │ ├── EntityQueryGeneratorDialogue.Designer.cs │ ├── EntityQueryGeneratorDialogue.cs │ ├── EntityQueryGeneratorDialogue.resx │ ├── OptionsDialogue.Designer.cs │ ├── OptionsDialogue.cs │ ├── OptionsDialogue.resx │ ├── RenameConnectionDialogue.Designer.cs │ ├── RenameConnectionDialogue.cs │ ├── RenameConnectionDialogue.resx │ ├── RestoreConnectionsDialogue.Designer.cs │ ├── RestoreConnectionsDialogue.cs │ ├── RestoreConnectionsDialogue.resx │ ├── StringResultDialogue.Designer.cs │ ├── StringResultDialogue.cs │ ├── StringResultDialogue.resx │ ├── TaskErrorTraceDialogue.Designer.cs │ ├── TaskErrorTraceDialogue.cs │ ├── TaskErrorTraceDialogue.resx │ ├── TaskInformationDialogue.Designer.cs │ ├── TaskInformationDialogue.cs │ └── TaskInformationDialogue.resx │ ├── Extensions.cs │ ├── Forms │ ├── AboutForm.Designer.cs │ ├── AboutForm.cs │ ├── AboutForm.resx │ ├── CrossThreadForm.cs │ ├── EditConnectionForm.Designer.cs │ ├── EditConnectionForm.cs │ ├── EditConnectionForm.resx │ ├── InvalidTemplateForm.Designer.cs │ ├── InvalidTemplateForm.cs │ ├── InvalidTemplateForm.resx │ ├── ManageConnectionsForm.Designer.cs │ ├── ManageConnectionsForm.cs │ ├── ManageConnectionsForm.resx │ ├── ManagerForm.Designer.cs │ ├── ManagerForm.cs │ ├── ManagerForm.resx │ ├── NewConnectionForm.Designer.cs │ ├── NewConnectionForm.cs │ ├── NewConnectionForm.resx │ ├── NewStoreForm.Designer.cs │ ├── NewStoreForm.cs │ ├── NewStoreForm.resx │ ├── OpenConnectionForm.Designer.cs │ ├── OpenConnectionForm.cs │ ├── OpenConnectionForm.resx │ ├── StartPage.Designer.cs │ ├── StartPage.cs │ ├── StartPage.resx │ ├── StoreManagerForm.Designer.cs │ ├── StoreManagerForm.cs │ └── StoreManagerForm.resx │ ├── Program.cs │ ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings │ ├── StoreManager.csproj │ ├── Tasks │ └── CopyMoveDragInfo.cs │ ├── app.config │ ├── database_gear.ico │ ├── file-manager.ico │ ├── folder_explore.png │ ├── folder_star.png │ ├── packages.config │ ├── plugins │ └── Store Manager Plugins.txt │ └── sparql.css ├── ToolkitInstaller ├── CopyBinaries.proj ├── EULA.rtf ├── Heat.proj ├── Product.wxs ├── StableIds.xsl └── ToolkitInstaller.wixproj ├── appveyor.yml └── dotNetRDF.Toolkit.sln /ChangeLog.txt: -------------------------------------------------------------------------------- 1 | dotNetRDF Toolkit 2 | ================= 3 | 4 | A Toolkit of command line utilities and GUI tools for working with RDF data 5 | 6 | Version 2.0.0 7 | 8 | dotNetRDF Project 2009-2020 9 | 10 | Change Log 11 | ---------- 12 | 13 | This represents a summary of additions, changes and removals for the dotNetRDF Toolkit detailed by tool. 14 | 15 | Note: While some tools may have no explicit changes all tools benefit from being upgraded to the latest release of the 16 | dotNetRDF core library which typically incorporates bug fixes and performance improvements so you should still 17 | upgrade to these latest versions. 18 | 19 | rdfConvert 20 | 21 | rdfEditor (Not available under Mono) 22 | 23 | rdfOptStats 24 | 25 | rdfQuery 26 | 27 | rdfServer 28 | 29 | rdfServerGUI 30 | 31 | rdfWebDeploy 32 | 33 | - This package has been removed from the toolkit 34 | 35 | soh 36 | 37 | SparqlGUI 38 | 39 | StoreManager 40 | 41 | Installation 42 | - Fixed bug with outdated versions being packaged in Installer Package (TOOLS-455) 43 | - Fixed missing Start Menu shortcuts (TOOLS-456) 44 | 45 | -------------------------------------------------------------------------------- /GraphBenchmarker/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace VDS.RDF.Utilities.GraphBenchmarker 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new fclsGraphBenchmarker()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /GraphBenchmarker/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("GraphBenchmarker")] 9 | [assembly: AssemblyDescription("A utility for benchmarking Graph and Triple Collection performance")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Visual Design Studios")] 12 | [assembly: AssemblyProduct("GraphBenchmarker")] 13 | [assembly: AssemblyCopyright("Copyright © Robert Vesse 2011-2021")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("8dd8b33d-0f91-4a3e-9cea-3bc984426a0b")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.2.0")] 35 | [assembly: AssemblyVersion("0.1.2.0")] 36 | [assembly: AssemblyFileVersion("0.1.2.0")] 37 | 38 | 39 | -------------------------------------------------------------------------------- /GraphBenchmarker/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.239 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace VDS.RDF.Utilities.GraphBenchmarker.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /GraphBenchmarker/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GraphBenchmarker/Test/Actual/CountTriplesTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace VDS.RDF.Utilities.GraphBenchmarker.Test.Actual 8 | { 9 | public class CountTriplesTest 10 | : SingleRunTest 11 | { 12 | public CountTriplesTest() 13 | : base("Count Triples", "Asks the Graph for the count of it's Triples") { } 14 | 15 | public override TestResult Run(TestCase testCase) 16 | { 17 | Stopwatch timer = new Stopwatch(); 18 | timer.Start(); 19 | int triples = testCase.Instance.Triples.Count; 20 | timer.Stop(); 21 | return new TestResult(timer.Elapsed, triples, "Triple(s)", TestMetricType.Count); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /GraphBenchmarker/Test/Actual/EnumerateTriplesTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace VDS.RDF.Utilities.GraphBenchmarker.Test.Actual 7 | { 8 | public class EnumerateTriplesTest : IterationTest 9 | { 10 | public EnumerateTriplesTest(int iterations) 11 | : base("Enumerate Triples", "Enumerates Triples by foreach over the Triple Collection of the Graph", iterations, "Triples/Second") { } 12 | 13 | protected override int RunIteration(TestCase testCase) 14 | { 15 | foreach (Triple t in testCase.Instance.Triples) 16 | { 17 | //Do Nothing 18 | } 19 | return testCase.Instance.Triples.Count; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /GraphBenchmarker/Test/Actual/LoadDataTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using VDS.RDF.Parsing; 6 | 7 | namespace VDS.RDF.Utilities.GraphBenchmarker.Test.Actual 8 | { 9 | public class LoadDataTest : SingleRunTest 10 | { 11 | private String _data; 12 | 13 | public LoadDataTest(String data) 14 | : base("Load Data", "Loads the Test Data into the Graph") 15 | { 16 | this._data = data; 17 | } 18 | 19 | public override TestResult Run(TestCase testCase) 20 | { 21 | DateTime start = DateTime.Now; 22 | FileLoader.Load(testCase.Instance, this._data); 23 | TimeSpan elapsed = DateTime.Now - start; 24 | 25 | return new TestResult(elapsed, testCase.Instance.Triples.Count, "Triples/Second", TestMetricType.Speed); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /GraphBenchmarker/Test/Actual/MemoryUsageCheck.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace VDS.RDF.Utilities.GraphBenchmarker.Test.Actual 7 | { 8 | public class InitialMemoryUsageCheck : SingleRunTest 9 | { 10 | public InitialMemoryUsageCheck() 11 | : base("Initial Memory Usage", "Checks how much memory is currently allocated to determine how much memory the empty Graph and Triple Collection required") 12 | { } 13 | 14 | public override TestResult Run(TestCase testCase) 15 | { 16 | long init = testCase.InitialMemory; 17 | long current = GC.GetTotalMemory(false); 18 | return new TestResult(TimeSpan.Zero, current - init); 19 | } 20 | } 21 | 22 | public class MemoryUsageCheck : SingleRunTest 23 | { 24 | public MemoryUsageCheck() 25 | : base("Memory Usage", "Checks how much memory is currently allocated to determine how much memory a Test Case used up to the current point") 26 | { } 27 | 28 | public override TestResult Run(TestCase testCase) 29 | { 30 | long init = testCase.InitialMemory; 31 | long current = GC.GetTotalMemory(false); 32 | return new TestResult(TimeSpan.Zero, current - init); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /GraphBenchmarker/Test/BaseTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace VDS.RDF.Utilities.GraphBenchmarker.Test 7 | { 8 | public abstract class BaseTest : ITest 9 | { 10 | private TestType _type; 11 | 12 | public BaseTest(String name, String description, TestType type) 13 | { 14 | this.Name = name; 15 | this.Description = description; 16 | this._type = type; 17 | } 18 | 19 | public string Name 20 | { 21 | get; 22 | private set; 23 | } 24 | 25 | public string Description 26 | { 27 | get; 28 | private set; 29 | } 30 | 31 | public TestType Type 32 | { 33 | get 34 | { 35 | return this._type; 36 | } 37 | } 38 | 39 | public abstract TestResult Run(TestCase testCase); 40 | } 41 | 42 | public abstract class SingleRunTest : BaseTest 43 | { 44 | public SingleRunTest(String name, String description) 45 | : base(name, description, TestType.SingleRun) 46 | { } 47 | } 48 | 49 | public abstract class IterationTest : BaseTest 50 | { 51 | private int _iterations; 52 | private String _unit; 53 | 54 | public IterationTest(String name, String description, int iterations, String unit) 55 | : base(name, description, TestType.Iterations) 56 | { 57 | this._iterations = Math.Max(1000, iterations); 58 | this._unit = unit; 59 | } 60 | 61 | /// 62 | /// Allows for actions to be taken prior to iterations which don't count towards the Benchmarked score 63 | /// 64 | /// 65 | protected virtual void PreIterationSetup(TestCase testCase) 66 | { 67 | 68 | } 69 | 70 | public override TestResult Run(TestCase testCase) 71 | { 72 | this.PreIterationSetup(testCase); 73 | 74 | DateTime start = DateTime.Now; 75 | int actions = 0; 76 | for (int i = 0; i < this._iterations; i++) 77 | { 78 | actions += this.RunIteration(testCase); 79 | } 80 | TimeSpan elapsed = DateTime.Now - start; 81 | 82 | return new TestResult(elapsed, actions, this._unit, TestMetricType.Speed); 83 | } 84 | 85 | protected abstract int RunIteration(TestCase testCase); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /GraphBenchmarker/Test/ITest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace VDS.RDF.Utilities.GraphBenchmarker.Test 7 | { 8 | public enum TestType 9 | { 10 | SingleRun, 11 | Iterations 12 | } 13 | 14 | public interface ITest 15 | { 16 | String Name 17 | { 18 | get; 19 | } 20 | 21 | String Description 22 | { 23 | get; 24 | } 25 | 26 | TestType Type 27 | { 28 | get; 29 | } 30 | 31 | TestResult Run(TestCase testCase); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /GraphBenchmarker/Test/TestSet.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace VDS.RDF.Utilities.GraphBenchmarker.Test 7 | { 8 | /// 9 | /// Possible Test Sets 10 | /// 11 | public enum TestSet 12 | { 13 | /// 14 | /// Standard Tests 15 | /// 16 | Standard, 17 | /// 18 | /// Load and Memory Usage only 19 | /// 20 | LoadAndMemory 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /GraphBenchmarker/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /GraphBenchmarker/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | dotNetRDF is free and open source software licensed under the MIT License 2 | 3 | ----------------------------------------------------------------------------- 4 | 5 | Copyright (c) 2009-2020 dotNetRDF Project (http://dotnetrdf.org/) 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is furnished 12 | to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 22 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/n3.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | (\p{L}(\p{L}|\p{N}|-|_)*)?:(\p{L}|\d)(\p{L}|\p{N}|-|_)* 16 | 17 | 18 | 19 | _:(\p{L}|\d)(\p{L}|\p{N}|-|_)* 20 | 21 | 22 | 23 | keywords 24 | => 25 | <= 26 | = 27 | ! 28 | ^ 29 | 30 | 31 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/nquads.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/nquads11.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/ntriples.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | " 18 | "(?<!\\) 19 | 20 | 21 | 22 | 23 | 24 | < 25 | >(?<!\\) 26 | 27 | 28 | 29 | 30 | 31 | _:([a-zA-Z]|\\u[a-fA-F0-9]{4}|\\U[a-fA-F0-9]{8})\w* 32 | 33 | 34 | 35 | \[\] 36 | 37 | 38 | 39 | 40 | 41 | @[A-Za-z]{2}(-[A-Za-z]+)* 42 | 43 | 44 | 45 | 46 | 47 | [.]|\^\^ 48 | 49 | 50 | 51 | 52 | 53 | \# 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/ntriples11.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | " 18 | "(?<!\\) 19 | 20 | 21 | 22 | 23 | 24 | < 25 | >(?<!\\) 26 | 27 | 28 | 29 | 30 | 31 | 32 | _:([a-zA-Z]|\\u[a-fA-F0-9]{4}|\\U[a-fA-F0-9]{8})\w* 33 | 34 | 35 | 36 | \[\] 37 | 38 | 39 | 40 | 41 | 42 | @[A-Za-z]{2}(-[A-Za-z]+)* 43 | 44 | 45 | 46 | 47 | 48 | [.]|\^\^C:\Users\rvesse\Documents\mercurial\dotnetrdf\Libraries\editor.wpf\Syntax\nquads11.xshd 49 | 50 | 51 | 52 | 53 | 54 | \# 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/rdfjson.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | /\* 16 | \*/ 17 | 18 | 19 | 20 | 21 | 22 | null 23 | 24 | 25 | 26 | " 27 | " 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | [\[\]\{\}:,] 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/rdfxml.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/sparql-query-11.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | true 23 | false 24 | a 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | [.;,{}*=></]|>=|<=|!=|\^\^|\^ 49 | 50 | 51 | 52 | 53 | 54 | \# 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | AS 63 | MINUS 64 | EXISTS 65 | NOT EXISTS 66 | GROUP BY 67 | HAVING 68 | COUNT 69 | AVG 70 | MIN 71 | MAX 72 | SUM 73 | SAMPLE 74 | GROUP_CONCAT 75 | SERVICE 76 | BINDINGS 77 | IF 78 | IRI 79 | BNODE 80 | STRLANG 81 | STRDT 82 | COALESCE 83 | URI 84 | UNDEF 85 | 86 | 87 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/sparql-results-json.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/sparql-results-xml.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/sparql-update.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | true 22 | false 23 | a 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | [.;,{}*=><]|>=|<=|!=|\^\^ 46 | 47 | 48 | 49 | 50 | 51 | \# 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | BASE 60 | CLEAR 61 | CREATE 62 | DATA 63 | DEFAULT 64 | DELETE 65 | DROP 66 | GRAPH 67 | INSERT 68 | INTO 69 | LOAD 70 | PREFIX 71 | SILENT 72 | USING 73 | WHERE 74 | WITH 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/trig.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | @prefix 19 | @base 20 | a 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | [.;,{}=]|\^\^ 37 | 38 | 39 | 40 | 41 | 42 | \# 43 | 44 | 45 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/trix.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/turtle11.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/Syntax/xhtml-rdfa.xshd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/WpfEditorFactory.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using System.Windows.Media; 31 | using ICSharpCode.AvalonEdit; 32 | 33 | namespace VDS.RDF.Utilities.Editor.Wpf 34 | { 35 | /// 36 | /// A Text Editor factory that generates AvalonEdit based text editors 37 | /// 38 | public class WpfEditorFactory 39 | : IVisualTextEditorAdaptorFactory 40 | { 41 | /// 42 | /// Creates a new text editor 43 | /// 44 | /// Text Editor 45 | public ITextEditorAdaptor CreateAdaptor() 46 | { 47 | return new WpfEditorAdaptor(); 48 | } 49 | 50 | /// 51 | /// Gets the default visual options 52 | /// 53 | /// Default Visual Options 54 | public VisualOptions GetDefaultVisualOptions() 55 | { 56 | return new WpfVisualOptions(); 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/WpfFindAndReplace.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using System.Windows; 31 | using ICSharpCode.AvalonEdit; 32 | 33 | namespace VDS.RDF.Utilities.Editor.Wpf 34 | { 35 | /// 36 | /// Find and Replace implementation for WPF 37 | /// 38 | public class WpfFindAndReplace 39 | : FindAndReplace 40 | { 41 | /// 42 | /// Shows a dialogue asking the user if they want to restart their search from the start 43 | /// 44 | /// True if the user says yes, false otherwise 45 | protected override bool ShouldRestartSearchFromStart() 46 | { 47 | return (MessageBox.Show("No further instances of the Find Text were found. Would you like to restart the search from beginning of document?", "Text Not Found", MessageBoxButton.YesNo) == MessageBoxResult.Yes); 48 | } 49 | 50 | /// 51 | /// Shows a message to the user 52 | /// 53 | /// Message 54 | protected override void ShowMessage(string message) 55 | { 56 | MessageBox.Show(message, "Find and Replace"); 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/WpfVisualOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Windows.Media; 29 | using System.Linq; 30 | using System.Text; 31 | 32 | namespace VDS.RDF.Utilities.Editor.Wpf 33 | { 34 | /// 35 | /// Visual Options for AvalonEdit based editors 36 | /// 37 | public class WpfVisualOptions 38 | : VisualOptions 39 | { 40 | /// 41 | /// Creates new visual options 42 | /// 43 | public WpfVisualOptions() 44 | { 45 | this.Foreground = Colors.Black; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Libraries/editor.wpf/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/AutoCompleteDefinition.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor.AutoComplete 32 | { 33 | /// 34 | /// Definition of an auto-completer 35 | /// 36 | public class AutoCompleteDefinition 37 | { 38 | private String _name; 39 | private Type _type; 40 | 41 | /// 42 | /// Creates a new auto-complete definition 43 | /// 44 | /// Name 45 | /// Type of the auto-complete implementation 46 | public AutoCompleteDefinition(String name, Type autoCompleteType) 47 | { 48 | this._name = name; 49 | this._type = autoCompleteType; 50 | } 51 | 52 | /// 53 | /// Name of the Syntax for which auto-completion is provided 54 | /// 55 | public String Name 56 | { 57 | get 58 | { 59 | return this._name; 60 | } 61 | } 62 | 63 | /// 64 | /// Type of the auto-completer 65 | /// 66 | public Type Type 67 | { 68 | get 69 | { 70 | return this._type; 71 | } 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/Data/BlankNodeData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor.AutoComplete.Data 32 | { 33 | /// 34 | /// Completion data for Blank Nodes 35 | /// 36 | public class BlankNodeData 37 | : BaseCompletionData 38 | { 39 | /// 40 | /// Creates new completion data 41 | /// 42 | /// Node ID 43 | public BlankNodeData(String id) 44 | : base(id, id, "Blank Node with ID " + id.Substring(2)) { } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/Data/ICompletionData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor.AutoComplete.Data 32 | { 33 | /// 34 | /// Interface for completion data 35 | /// 36 | public interface ICompletionData 37 | : IComparable, IComparable, IEquatable 38 | { 39 | /// 40 | /// Gets the description that should be displayed as a tool tip (if available) 41 | /// 42 | String Description 43 | { 44 | get; 45 | } 46 | 47 | /// 48 | /// Gets the text to display in the auto-complete list 49 | /// 50 | String DisplayText 51 | { 52 | get; 53 | } 54 | 55 | /// 56 | /// Gets the text that should actually be inserted 57 | /// 58 | String InsertionText 59 | { 60 | get; 61 | } 62 | 63 | /// 64 | /// Gets the priority 65 | /// 66 | double Priority 67 | { 68 | get; 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/Data/KeywordData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor.AutoComplete.Data 32 | { 33 | /// 34 | /// Completion data for keywords 35 | /// 36 | public class KeywordData 37 | : BaseCompletionData 38 | { 39 | /// 40 | /// Creates new completion data 41 | /// 42 | /// Keyword 43 | public KeywordData(String keyword) 44 | : this(keyword, "The " + keyword + " Keyword") { } 45 | 46 | /// 47 | /// Creates new completion data 48 | /// 49 | /// Keyword 50 | /// Description 51 | public KeywordData(String keyword, String description) 52 | : base(keyword, keyword, description) { } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/Data/NewBlankNodeData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor.AutoComplete.Data 32 | { 33 | /// 34 | /// Completion data for a new blank node 35 | /// 36 | public class NewBlankNodeData 37 | : BaseCompletionData 38 | { 39 | /// 40 | /// Creates new completion data 41 | /// 42 | /// Next Node ID 43 | public NewBlankNodeData(String id) 44 | : base("", "_:" + id, "Inserts a new Blank Node", 50.0d) { } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/Data/QNameData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor.AutoComplete.Data 32 | { 33 | /// 34 | /// Completion data for QNames 35 | /// 36 | public class QNameData 37 | : BaseCompletionData 38 | { 39 | /// 40 | /// Creates new completion data 41 | /// 42 | /// QName 43 | public QNameData(String qname) 44 | : this(qname, String.Empty) { } 45 | 46 | /// 47 | /// Creates new completion data 48 | /// 49 | /// QName 50 | /// Description 51 | public QNameData(String qname, String description) 52 | : base(qname, qname, description) { } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/Data/VariableData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor.AutoComplete.Data 32 | { 33 | /// 34 | /// Completion data for variables 35 | /// 36 | public class VariableData 37 | : BaseCompletionData 38 | { 39 | /// 40 | /// Creates new completion data 41 | /// 42 | /// Variable 43 | public VariableData(String var) 44 | : base(var, var, "Variable " + var) { } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/IAutoCompleter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor.AutoComplete 32 | { 33 | /// 34 | /// Interface for auto-completers 35 | /// 36 | /// Control Type 37 | public interface IAutoCompleter 38 | { 39 | /// 40 | /// Detect current auto-complete state, typically called when the user moves the cursor to a new position in the file 41 | /// 42 | void DetectState(); 43 | 44 | /// 45 | /// Try to auto-complete 46 | /// 47 | /// New Text 48 | void TryAutoComplete(String newText); 49 | 50 | /// 51 | /// Gets/Sets the state 52 | /// 53 | AutoCompleteState State 54 | { 55 | get; 56 | set; 57 | } 58 | 59 | /// 60 | /// Gets/Sets the last completion 61 | /// 62 | AutoCompleteState LastCompletion 63 | { 64 | get; 65 | set; 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/SparqlUpdateAutoCompleter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using VDS.RDF.Parsing; 31 | using VDS.RDF.Query; 32 | using VDS.RDF.Utilities.Editor.AutoComplete.Data; 33 | 34 | namespace VDS.RDF.Utilities.Editor.AutoComplete 35 | { 36 | /// 37 | /// Auto-completer implementation for SPARQL Update 38 | /// 39 | /// Control Type 40 | public class SparqlUpdateAutoCompleter 41 | : SparqlAutoCompleter 42 | { 43 | /// 44 | /// Creates a new auto-completer 45 | /// 46 | /// Text Editor 47 | public SparqlUpdateAutoCompleter(ITextEditorAdaptor editor) 48 | : base(editor, SparqlQuerySyntax.Sparql_1_1) 49 | { 50 | foreach (String keyword in SparqlSpecsHelper.SparqlUpdate11Keywords) 51 | { 52 | this._keywords.Add(new KeywordData(keyword)); 53 | this._keywords.Add(new KeywordData(keyword.ToLower())); 54 | } 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Libraries/editor/AutoComplete/Vocabularies/vs.ttl: -------------------------------------------------------------------------------- 1 | @base . 2 | 3 | @prefix rdf: . 4 | @prefix rdfs: . 5 | @prefix xsd: . 6 | @prefix dc: . 7 | @prefix owl: . 8 | @prefix foaf: . 9 | @prefix vs: . 10 | 11 | vs: dc:description "An RDF vocabulary for relating SW vocabulary terms to their status."; 12 | dc:title "SemWeb Vocab Status ontology"; 13 | a owl:Ontology. 14 | vs:moreinfo a rdf:Property; 15 | rdfs:comment "more information about the status etc of a term, typically human oriented"; 16 | rdfs:label "more info"; 17 | vs:term_status "unstable". 18 | vs:term_status a rdf:Property; 19 | rdfs:comment "the status of a vocabulary term, expressed as a short symbolic string; known values include 'unstable','testing', 'stable' and 'archaic'"; 20 | rdfs:label "term status"; 21 | vs:term_status "unstable". 22 | vs:userdocs a rdf:Property; 23 | rdfs:comment "human-oriented documentation, examples etc for use of this term"; 24 | rdfs:label "user docs"; 25 | vs:term_status "unstable". 26 | -------------------------------------------------------------------------------- /Libraries/editor/ITextEditorAdaptorFactory.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor 32 | { 33 | /// 34 | /// Interface for text editor factories 35 | /// 36 | /// Control Type 37 | public interface ITextEditorAdaptorFactory 38 | { 39 | /// 40 | /// Create a new text editor 41 | /// 42 | /// New Text Editor 43 | ITextEditorAdaptor CreateAdaptor(); 44 | } 45 | 46 | /// 47 | /// Interface for text editor factories that support visual options 48 | /// 49 | /// Control Type 50 | /// Font Type 51 | /// Colour Type 52 | public interface IVisualTextEditorAdaptorFactory 53 | : ITextEditorAdaptorFactory 54 | where TFont : class 55 | where TColor : struct 56 | { 57 | /// 58 | /// Gets the default visual options 59 | /// 60 | /// Default Visual Options 61 | VisualOptions GetDefaultVisualOptions(); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Libraries/editor/Selection/ISymbolSelector.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | 28 | namespace VDS.RDF.Utilities.Editor.Selection 29 | { 30 | /// 31 | /// Interface for Symbol Selectors 32 | /// 33 | public interface ISymbolSelector 34 | { 35 | /// 36 | /// Gets/Sets whether the Symbol Selector should include deliminator (i.e. boundary) characters in the selected symbol 37 | /// 38 | bool IncludeDeliminator 39 | { 40 | get; 41 | set; 42 | } 43 | 44 | /// 45 | /// Selects a Symbol around the current Selection (if any) or Caret Position in the given Text Editor 46 | /// 47 | /// Document 48 | void SelectSymbol(Document doc); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Libraries/editor/TextEditorEvents.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Editor 32 | { 33 | /// 34 | /// Event arguments for text editor events 35 | /// 36 | /// Control Type 37 | public class TextEditorEventArgs 38 | : EventArgs 39 | { 40 | /// 41 | /// Creates new event arguments 42 | /// 43 | /// Text Editor 44 | public TextEditorEventArgs(ITextEditorAdaptor editor) 45 | { 46 | this.TextEditor = editor; 47 | } 48 | 49 | /// 50 | /// Gets the text editor that was affected by the event 51 | /// 52 | public ITextEditorAdaptor TextEditor 53 | { 54 | get; 55 | private set; 56 | } 57 | } 58 | 59 | /// 60 | /// Delegate for text editor events 61 | /// 62 | /// Control Type 63 | /// Sender 64 | /// Event Arguments 65 | public delegate void TextEditorEventHandler(Object sender, TextEditorEventArgs args); 66 | } 67 | -------------------------------------------------------------------------------- /Libraries/editor/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Libraries/editor/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Libraries/gui.winforms/Controls/DnrRichTextBox.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.InteropServices; 5 | using System.Text; 6 | using System.Windows.Forms; 7 | 8 | namespace VDS.RDF.GUI.WinForms 9 | { 10 | /// 11 | /// Extended richtextbox to allow disable/enable of updates 12 | /// 13 | public class DnrRichTextBox : RichTextBox 14 | { 15 | //note - http://stackoverflow.com/questions/3282384/richtextbox-syntax-highlighting-in-real-time-disabling-the-repaint 16 | 17 | public void BeginUpdate() 18 | { 19 | if (this.IsDisposed) return; 20 | SendMessage(this.Handle, WM_SETREDRAW, (IntPtr)0, IntPtr.Zero); 21 | } 22 | public void EndUpdate() 23 | { 24 | if (this.IsDisposed) return; 25 | SendMessage(this.Handle, WM_SETREDRAW, (IntPtr)1, IntPtr.Zero); 26 | this.Invalidate(); 27 | } 28 | [DllImport("user32.dll")] 29 | private static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wp, IntPtr lp); 30 | private const int WM_SETREDRAW = 0x0b; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Libraries/gui.winforms/Events.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright dotNetRDF Project 2009-12 4 | dotnetrdf-develop@lists.sf.net 5 | 6 | ------------------------------------------------------------------------ 7 | 8 | This file is part of dotNetRDF. 9 | 10 | dotNetRDF is free software: you can redistribute it and/or modify 11 | it under the terms of the GNU General Public License as published by 12 | the Free Software Foundation, either version 3 of the License, or 13 | (at your option) any later version. 14 | 15 | dotNetRDF is distributed in the hope that it will be useful, 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | GNU General Public License for more details. 19 | 20 | You should have received a copy of the GNU General Public License 21 | along with dotNetRDF. If not, see . 22 | 23 | ------------------------------------------------------------------------ 24 | 25 | dotNetRDF may alternatively be used under the LGPL or MIT License 26 | 27 | http://www.gnu.org/licenses/lgpl.html 28 | http://www.opensource.org/licenses/mit-license.php 29 | 30 | If these licenses are not suitable for your intended use please contact 31 | us at the above stated email address to discuss alternative 32 | terms. 33 | 34 | */ 35 | 36 | using System; 37 | using System.Collections.Generic; 38 | using System.ComponentModel; 39 | using System.Linq; 40 | using System.Text; 41 | using VDS.RDF.GUI.WinForms.Controls; 42 | 43 | namespace VDS.RDF.GUI.WinForms 44 | { 45 | /// 46 | /// Event that occurs when a URI is clicked 47 | /// 48 | /// Originator of the event 49 | /// URI that was clicked 50 | public delegate void UriClickedEventHandler(Object sender, Uri u); 51 | 52 | /// 53 | /// Event that occurs when the formatter is changed 54 | /// 55 | /// Originator of the event 56 | /// Formatter that is now selected 57 | public delegate void FormatterChanged(Object sender, Formatter formatter); 58 | 59 | /// 60 | /// Event that occurs when result are requested to be closed 61 | /// 62 | /// Originator of the event 63 | public delegate void ResultCloseRequested(Object sender); 64 | 65 | /// 66 | /// Event that occurs when results are requested to be detached 67 | /// 68 | /// Originator of the event 69 | public delegate void ResultDetachRequested(Object sender); 70 | } 71 | -------------------------------------------------------------------------------- /Libraries/gui.winforms/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Libraries/gui.winforms/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Libraries/storemanager.core/Extensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2013 dotNetRDF Project (dotnetrdf-develop@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.StoreManager 32 | { 33 | internal static class Extensions 34 | { 35 | internal static String ToSafeString(this Object value) 36 | { 37 | return ToSafeString(value, "Unknown"); 38 | } 39 | 40 | internal static String ToSafeString(this Object value, String defaultValue) 41 | { 42 | return value != null ? value.ToString() : defaultValue; 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Libraries/storemanager.core/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Libraries/storemanager.core/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ReadMe.txt: -------------------------------------------------------------------------------- 1 | dotNetRDF Toolkit for Windows 2 | ============================= 3 | 4 | A Toolkit of command line utilities and GUI tools for working with RDF data 5 | 6 | dotNetRDF Project 2009-2021 7 | 8 | Usage 9 | ----- 10 | 11 | Unzip this zip package to a folder of your choice. We recommend adding this folder to your PATH variable so you can access the command line tools from a command prompt regardless of the working directory. 12 | 13 | This Toolkit provides the following command line utilities: 14 | - rdfConvert - A tool for converting RDF Graphs and Datasets between different serializations 15 | - rdfOptStats - A tool for generating statistics on RDF for use with the new optional Weighted Optimiser 16 | - rdfQuery - A tool for querying RDF data using SPARQL 17 | - rdfServer - A tool for running a lightweight HTTP server to experimental with SPARQL 18 | - soh - A tool for communicating with servers supporting the SPARQL Protocols over HTTP 19 | 20 | This Toolkit provides the following GUI tools: 21 | - rdfEditor - A Notepad replacement for editing RDF and SPARQL 22 | - rdfServerGUI - A GUI for managing rdfServer instances 23 | - SparqlGUI - A GUI for testing SPARQL queries using dotNetRDF's in-memory Leviathan engine 24 | - StoreManager - A GUI for performing basic management and query tasks on various Triple Stores 25 | 26 | You can find the documentation at https://github.com/dotnetrdf/dotnetrdf/wiki/UserGuide-Tools 27 | 28 | License 29 | ------- 30 | 31 | dotNetRDF is licensed under the MIT License, see LICENSE.txt for details 32 | 33 | Acknowledgements 34 | ---------------- 35 | 36 | Please see the Acknowledgements.txt file -------------------------------------------------------------------------------- /Toolkit Icons.icl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit Icons.icl -------------------------------------------------------------------------------- /Toolkit/SparqlGUI/Program.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Windows.Forms; 28 | 29 | namespace VDS.RDF.Utilities.Sparql 30 | { 31 | static class Program 32 | { 33 | /// 34 | /// The main entry point for the application. 35 | /// 36 | [STAThread] 37 | static void Main() 38 | { 39 | Application.EnableVisualStyles(); 40 | Application.SetCompatibleTextRenderingDefault(false); 41 | Application.Run(new fclsSparqlGui()); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Toolkit/SparqlGUI/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | False 7 | 8 | 9 | -------------------------------------------------------------------------------- /Toolkit/SparqlGUI/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 |
7 | 8 | 9 | 10 | 11 | 12 | False 13 | 14 | 15 | 16 | 17 | True 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Toolkit/SparqlGUI/database.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/SparqlGUI/database.ico -------------------------------------------------------------------------------- /Toolkit/SparqlGUI/database_table.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/SparqlGUI/database_table.ico -------------------------------------------------------------------------------- /Toolkit/SparqlGUI/default.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX rdfs: 3 | PREFIX xsd: 4 | PREFIX owl: 5 | PREFIX fn: 6 | PREFIX afn: 7 | PREFIX lfn: 8 | PREFIX pf: 9 | 10 | SELECT * 11 | WHERE 12 | { 13 | { ?s a ?type } 14 | UNION 15 | { GRAPH ?g { ?s a ?type } } 16 | } -------------------------------------------------------------------------------- /Toolkit/SparqlGUI/fclsStylesheetPicker.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Windows.Forms; 28 | 29 | namespace VDS.RDF.Utilities.Sparql 30 | { 31 | public partial class fclsStylesheetPicker : Form 32 | { 33 | public fclsStylesheetPicker(String type) 34 | { 35 | InitializeComponent(); 36 | 37 | this.Text = String.Format(this.Text, type); 38 | } 39 | 40 | private void btnOK_Click(object sender, EventArgs e) 41 | { 42 | this.DialogResult = DialogResult.OK; 43 | this.Close(); 44 | } 45 | 46 | private void btnCancel_Click(object sender, EventArgs e) 47 | { 48 | this.DialogResult = DialogResult.Cancel; 49 | this.Close(); 50 | } 51 | 52 | public String StylesheetUri 53 | { 54 | get 55 | { 56 | return this.txtStylesheetUri.Text; 57 | } 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Toolkit/SparqlGUI/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Toolkit/SparqlGUI/regex.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdfs: 2 | PREFIX rdf: 3 | PREFIX bsbm: 4 | 5 | SELECT ?product ?label 6 | WHERE { 7 | ?product rdfs:label ?label . 8 | ?product rdf:type bsbm:Product . 9 | FILTER regex(?label, "nonrepresentative") 10 | } -------------------------------------------------------------------------------- /Toolkit/rdfConvert/ConversionExtensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Security.Cryptography; 29 | using System.IO; 30 | using System.Linq; 31 | using System.Text; 32 | using VDS.RDF.Utilities.Convert.Inputs; 33 | 34 | namespace VDS.RDF.Utilities.Convert 35 | { 36 | static class ConversionExtensions 37 | { 38 | public static String GetFilename(this IConversionInput input, String baseName, String ext) 39 | { 40 | String outFile = String.Empty; 41 | if (!baseName.Equals(String.Empty)) 42 | { 43 | outFile = baseName; 44 | if (input is FileInput) 45 | { 46 | outFile += "_" + Path.GetFileNameWithoutExtension(((FileInput)input).SourceFile); 47 | } 48 | else if (input is UriInput) 49 | { 50 | outFile += "_" + ((UriInput)input).SourceUri.GetSha256Hash(); 51 | } 52 | outFile += ext; 53 | return outFile; 54 | } 55 | else 56 | { 57 | if (input is FileInput) 58 | { 59 | outFile = Path.GetFileNameWithoutExtension(((FileInput)input).SourceFile); 60 | } 61 | else if (input is UriInput) 62 | { 63 | outFile = ((UriInput)input).SourceUri.GetSha256Hash(); 64 | } 65 | outFile += ext; 66 | return outFile; 67 | } 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /Toolkit/rdfConvert/Inputs/BaseInput.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Convert.Inputs 32 | { 33 | abstract class BaseInput : IConversionInput 34 | { 35 | public BaseInput() 36 | { } 37 | 38 | public BaseInput(IRdfHandler handler) 39 | { 40 | this.ConversionHandler = handler; 41 | } 42 | 43 | public IRdfHandler ConversionHandler 44 | { 45 | get; set; 46 | } 47 | 48 | public abstract void Convert(); 49 | 50 | public abstract override string ToString(); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Toolkit/rdfConvert/Inputs/FileInput.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using VDS.RDF.Parsing; 31 | 32 | namespace VDS.RDF.Utilities.Convert.Inputs 33 | { 34 | class FileInput : BaseInput, IFileConversionInput 35 | { 36 | public FileInput(String file) 37 | { 38 | this.SourceFile = file; 39 | } 40 | 41 | public string SourceFile 42 | { 43 | get; 44 | private set; 45 | } 46 | 47 | public override void Convert() 48 | { 49 | if (this.ConversionHandler == null) throw new Exception("Cannot convert the Input File '" + this.SourceFile + "' as rdfConvert could not determine a Conversion Handler to use for the Conversion"); 50 | 51 | try 52 | { 53 | FileLoader.Load(this.ConversionHandler, this.SourceFile); 54 | } 55 | catch 56 | { 57 | FileLoader.LoadDataset(this.ConversionHandler, this.SourceFile); 58 | } 59 | } 60 | 61 | public override string ToString() 62 | { 63 | return "File '" + this.SourceFile + "'"; 64 | } 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /Toolkit/rdfConvert/Inputs/IInput.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Convert.Inputs 32 | { 33 | interface IConversionInput 34 | { 35 | IRdfHandler ConversionHandler 36 | { 37 | get; 38 | set; 39 | } 40 | 41 | void Convert(); 42 | } 43 | 44 | interface IFileConversionInput : IConversionInput 45 | { 46 | String SourceFile 47 | { 48 | get; 49 | } 50 | } 51 | 52 | interface IUriConversionInput : IConversionInput 53 | { 54 | Uri SourceUri 55 | { 56 | get; 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Toolkit/rdfConvert/Inputs/UriInput.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using VDS.RDF.Parsing; 31 | 32 | namespace VDS.RDF.Utilities.Convert.Inputs 33 | { 34 | class UriInput : BaseInput, IUriConversionInput 35 | { 36 | public UriInput(Uri u) 37 | { 38 | this.SourceUri = u; 39 | } 40 | 41 | public Uri SourceUri { get; private set; } 42 | 43 | public override void Convert() 44 | { 45 | if (this.ConversionHandler == null) throw new Exception("Cannot convert the Input URI '" + this.SourceUri.ToString() + "' as rdfConvert could not determine a Conversion Handler to use for the Conversion"); 46 | 47 | try 48 | { 49 | UriLoader.Load(this.ConversionHandler, this.SourceUri); 50 | } 51 | catch 52 | { 53 | UriLoader.LoadDataset(this.ConversionHandler, this.SourceUri); 54 | } 55 | } 56 | 57 | public override string ToString() 58 | { 59 | return "URI '" + this.SourceUri.AbsoluteUri + "'"; 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Toolkit/rdfConvert/Program.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Linq; 28 | using System.Net; 29 | using System.Text; 30 | 31 | //REQ: Add command line arguments to import custom parsers and serializers 32 | 33 | namespace VDS.RDF.Utilities.Convert 34 | { 35 | class Program 36 | { 37 | static void Main(string[] args) 38 | { 39 | //Disable URI Interning as this will otherwise cause us to use way too much 40 | //memory when doing large streaming conversions 41 | Options.InternUris = false; 42 | 43 | //Also turn off UTF-8 BOM by default for maximum compatibility and portability 44 | //of the data we output 45 | Options.UseBomForUtf8 = false; 46 | 47 | //Set Console Output Encoding to UTF-8 48 | Console.OutputEncoding = Encoding.UTF8; 49 | 50 | // Set use of TLS 1.2 51 | ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 52 | if (args.Length >= 1 && args[0].Equals("-rapper")) 53 | { 54 | RapperConvert rapper = new RapperConvert(); 55 | rapper.RunConvert(args.Skip(1).ToArray()); 56 | } 57 | else 58 | { 59 | RdfConvert converter = new RdfConvert(); 60 | converter.RunConvert(args); 61 | } 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Toolkit/rdfConvert/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Toolkit/rdfConvert/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Toolkit/rdfConvert/page_refresh.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/rdfConvert/page_refresh.ico -------------------------------------------------------------------------------- /Toolkit/rdfConvert/recycled.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/rdfConvert/recycled.ico -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/About.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | rdfDBStudio is based upon the free and open source AvalonEdit component which was developed by Daniel Grunwald as part of the SharpDevelop project 37 | 38 | rdfDBStudio is currently Alpha so please be aware this software may be buggy - please report all bugs to dotnetrdf-bugreports@lists.sourceforge.net 39 | 40 | 41 | -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/About.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright dotNetRDF Project 2009-12 4 | dotnetrdf-develop@lists.sf.net 5 | 6 | ------------------------------------------------------------------------ 7 | 8 | This file is part of dotNetRDF. 9 | 10 | dotNetRDF is free software: you can redistribute it and/or modify 11 | it under the terms of the GNU General Public License as published by 12 | the Free Software Foundation, either version 3 of the License, or 13 | (at your option) any later version. 14 | 15 | dotNetRDF is distributed in the hope that it will be useful, 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | GNU General Public License for more details. 19 | 20 | You should have received a copy of the GNU General Public License 21 | along with dotNetRDF. If not, see . 22 | 23 | ------------------------------------------------------------------------ 24 | 25 | dotNetRDF may alternatively be used under the LGPL or MIT License 26 | 27 | http://www.gnu.org/licenses/lgpl.html 28 | http://www.opensource.org/licenses/mit-license.php 29 | 30 | If these licenses are not suitable for your intended use please contact 31 | us at the above stated email address to discuss alternative 32 | terms. 33 | 34 | */ 35 | 36 | using System; 37 | using System.Collections.Generic; 38 | using System.Linq; 39 | using System.Reflection; 40 | using System.Text; 41 | using System.Windows; 42 | using System.Windows.Controls; 43 | using System.Windows.Data; 44 | using System.Windows.Documents; 45 | using System.Windows.Input; 46 | using System.Windows.Media; 47 | using System.Windows.Media.Imaging; 48 | using System.Windows.Shapes; 49 | using VDS.RDF; 50 | using VDS.RDF.Utilities.Editor; 51 | using VDS.RDF.Utilities.Editor.Wpf; 52 | using VDS.RDF.Utilities.StoreManager.Connections; 53 | 54 | namespace VDS.RDF.Utilities.Studio 55 | { 56 | /// 57 | /// Interaction logic for About.xaml 58 | /// 59 | public partial class About 60 | : Window 61 | { 62 | public About() 63 | { 64 | InitializeComponent(); 65 | 66 | this.lblStudioVersion.Content = Assembly.GetExecutingAssembly().GetName().Version; 67 | this.lblEditorCoreVersion.Content = Assembly.GetAssembly(typeof(GlobalOptions)).GetName().Version; 68 | this.lblEditorCoreWpfVersion.Content = Assembly.GetAssembly(typeof(WpfEditorAdaptor)).GetName().Version; 69 | this.lblStoreManagerCoreVersion.Content = Assembly.GetAssembly(typeof(ConnectionDefinitionManager)).GetName().Version; 70 | this.lblRdfVersion.Content = Assembly.GetAssembly(typeof(IGraph)).GetName().Version; 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/App.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Windows; 7 | 8 | namespace VDS.RDF.Utilities.Studio 9 | { 10 | /// 11 | /// Interaction logic for App.xaml 12 | /// 13 | public partial class App : Application 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/Icons/player_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/rdfDBStudio/Icons/player_play.png -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // General Information about an assembly is controlled through the following 8 | // set of attributes. Change these attribute values to modify the information 9 | // associated with an assembly. 10 | [assembly: AssemblyTitle("rdfDBStudio")] 11 | [assembly: AssemblyDescription("An application for managing RDF databases")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("Visual Design Studios")] 14 | [assembly: AssemblyProduct("rdfDBStudio")] 15 | [assembly: AssemblyCopyright("Copyright © dotNetRDF Project 2010-2021")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // Setting ComVisible to false makes the types in this assembly not visible 20 | // to COM components. If you need to access a type in this assembly from 21 | // COM, set the ComVisible attribute to true on that type. 22 | [assembly: ComVisible(false)] 23 | 24 | //In order to begin building localizable applications, set 25 | //CultureYouAreCodingWith in your .csproj file 26 | //inside a . For example, if you are using US english 27 | //in your source files, set the to en-US. Then uncomment 28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in 29 | //the line below to match the UICulture setting in the project file. 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo( 35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 36 | //(used if a resource is not found in the page, 37 | // or application resource dictionaries) 38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 39 | //(used if a resource is not found in the page, 40 | // app, or any theme specific resource dictionaries) 41 | )] 42 | 43 | 44 | // Version information for an assembly consists of the following four values: 45 | // 46 | // Major Version 47 | // Minor Version 48 | // Build Number 49 | // Revision 50 | // 51 | // You can specify all the values or you can default the Build and Revision Numbers 52 | // by using the '*' as shown below: 53 | // [assembly: AssemblyVersion("1.0.13.0")] 54 | [assembly: AssemblyVersion("1.0.13.0")] 55 | [assembly: AssemblyFileVersion("1.0.13.0")] 56 | -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.269 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace VDS.RDF.Utilities.Studio.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/Studio.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Windows; 6 | using System.Windows.Controls; 7 | using System.Windows.Data; 8 | using System.Windows.Documents; 9 | using System.Windows.Input; 10 | using System.Windows.Media; 11 | using System.Windows.Media.Imaging; 12 | using System.Windows.Navigation; 13 | using System.Windows.Shapes; 14 | 15 | namespace VDS.RDF.Utilities.Studio 16 | { 17 | /// 18 | /// Interaction logic for Studio.xaml 19 | /// 20 | public partial class Studio 21 | : Window 22 | { 23 | public Studio() 24 | { 25 | InitializeComponent(); 26 | } 27 | 28 | #region Toolbar 29 | 30 | private void btnRun_Click(object sender, RoutedEventArgs e) 31 | { 32 | 33 | } 34 | 35 | #endregion 36 | 37 | #region File Menu 38 | 39 | private void mnuExit_Click(object sender, RoutedEventArgs e) 40 | { 41 | Application.Current.Shutdown(); 42 | } 43 | 44 | #endregion 45 | 46 | #region View Menu 47 | 48 | private void mnuViewSidebar_Click(object sender, RoutedEventArgs e) 49 | { 50 | if (this.tvwSidebar.Visibility == System.Windows.Visibility.Collapsed) 51 | { 52 | this.gridMain.ColumnDefinitions[0].Width = new GridLength(100, GridUnitType.Star); 53 | this.tvwSidebar.Visibility = System.Windows.Visibility.Visible; 54 | this.splMain.Visibility = System.Windows.Visibility.Visible; 55 | } 56 | else 57 | { 58 | this.gridMain.ColumnDefinitions[0].Width = new GridLength(0); 59 | this.tvwSidebar.Visibility = System.Windows.Visibility.Collapsed; 60 | this.splMain.Visibility = System.Windows.Visibility.Hidden; 61 | } 62 | } 63 | 64 | #endregion 65 | 66 | #region Help Menu 67 | 68 | private void mnuAbout_Click(object sender, RoutedEventArgs e) 69 | { 70 | About about = new About(); 71 | about.Show(); 72 | } 73 | 74 | #endregion 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Toolkit/rdfDBStudio/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/About.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | rdfEditor is based upon the free and open source AvalonEdit component which was developed by Daniel Grunwald as part of the SharpDevelop project 33 | 34 | rdfEditor is currently Alpha so please be aware this software may be buggy - please report all bugs to https://github.com/dotnetrdf/dotNetRDF.Toolkit/issues 35 | 36 | 37 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/About.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Reflection; 30 | using System.Text; 31 | using System.Windows; 32 | using System.Windows.Controls; 33 | using System.Windows.Data; 34 | using System.Windows.Documents; 35 | using System.Windows.Input; 36 | using System.Windows.Media; 37 | using System.Windows.Media.Imaging; 38 | using System.Windows.Shapes; 39 | using VDS.RDF; 40 | 41 | namespace VDS.RDF.Utilities.Editor.Wpf 42 | { 43 | /// 44 | /// Interaction logic for About.xaml 45 | /// 46 | public partial class About : Window 47 | { 48 | public About() 49 | { 50 | InitializeComponent(); 51 | 52 | this.lblEditorVersion.Content = Assembly.GetExecutingAssembly().GetName().Version; 53 | this.lblEditorCoreVersion.Content = Assembly.GetAssembly(typeof(GlobalOptions)).GetName().Version; 54 | this.lblEditorCoreWpfVersion.Content = Assembly.GetAssembly(typeof(WpfEditorAdaptor)).GetName().Version; 55 | this.lblRdfVersion.Content = Assembly.GetAssembly(typeof(IGraph)).GetName().Version; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/App.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/ComplexInputBinding.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.ComponentModel; 29 | using System.Linq; 30 | using System.Text; 31 | using System.Windows.Input; 32 | 33 | namespace VDS.RDF.Utilities.Editor.Wpf 34 | { 35 | /// 36 | /// 37 | /// 38 | /// 39 | /// Based on code by Kent Boogaart from this blog entry 40 | /// 41 | public class ComplexInputBinding : InputBinding 42 | { 43 | [TypeConverter(typeof(ComplexInputGestureConverter))] 44 | public override InputGesture Gesture 45 | { 46 | get 47 | { 48 | return base.Gesture as ComplexInputGesture; 49 | } 50 | set 51 | { 52 | if (!(value is ComplexInputGesture)) 53 | { 54 | throw new ArgumentException(); 55 | } 56 | 57 | base.Gesture = value; 58 | } 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/Controls/LiteralNodeControl.xaml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/Controls/UriNodeControl.xaml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/Controls/UriNodeControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Diagnostics; 29 | using System.Linq; 30 | using System.Text; 31 | using System.Windows; 32 | using System.Windows.Controls; 33 | using System.Windows.Data; 34 | using System.Windows.Documents; 35 | using System.Windows.Input; 36 | using System.Windows.Media; 37 | using System.Windows.Media.Imaging; 38 | using System.Windows.Navigation; 39 | using System.Windows.Shapes; 40 | using VDS.RDF; 41 | using VDS.RDF.Writing.Formatting; 42 | 43 | namespace VDS.RDF.Utilities.Editor.Wpf.Controls 44 | { 45 | /// 46 | /// Interaction logic for UriNodeControl.xaml 47 | /// 48 | public partial class UriNodeControl : UserControl 49 | { 50 | private Uri _u; 51 | 52 | public UriNodeControl(IUriNode u, INodeFormatter formatter) 53 | { 54 | InitializeComponent(); 55 | 56 | this.lnkUri.Text = formatter.Format(u); 57 | this._u = u.Uri; 58 | } 59 | 60 | public UriNodeControl(UriNode u) 61 | : this(u, new NTriplesFormatter()) { } 62 | 63 | private void Hyperlink_Click(object sender, RoutedEventArgs e) 64 | { 65 | try 66 | { 67 | Process.Start(this._u.AbsoluteUri); 68 | } 69 | catch 70 | { 71 | //Supress errors 72 | } 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/FileAssociations.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 | 19 | 20 | NTriples (*.nt) 21 | Turtle (*.ttl) 22 | Notation 3 (*.n3) 23 | RDF/XML (*.rdf) 24 | RDF/JSON (*.json) 25 | SPARQL Query Files (*.rq,*.sparql) 26 | SPARQL Results Format XML (*.srx) 27 | TriG (*.trig) 28 | NQuads (*.nq) 29 | 30 | 31 | Always perform this check when starting rdfEditor? 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/FindReplace.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Current Document 13 | Selection 14 | 15 | 16 | 17 | Match Case 18 | Match whole word 19 | Search up 20 | Use Regular Expression 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/GoToLine.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 1 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/OpenQueryResults.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | http://dbpedia.org/sparql 20 | 21 | 22 | http://dbpedia.org 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/OpenUri.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | http:// 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/PrintPreview.xaml: -------------------------------------------------------------------------------- 1 |  10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/ResultSetWindow.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/TriplesWindow.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | 10 | NTriples 11 | Turtle 12 | Uncompressed Turtle 13 | Notation 3 14 | Uncompressed Notation 3 15 | CSV 16 | TSV 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/package_editors.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/rdfEditor.Wpf/package_editors.ico -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Toolkit/rdfEditor.Wpf/page_edit.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/rdfEditor.Wpf/page_edit.ico -------------------------------------------------------------------------------- /Toolkit/rdfOptStats/Program.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.OptimiserStats 32 | { 33 | class Program 34 | { 35 | static void Main(string[] args) 36 | { 37 | RdfOptimiserStats stats = new RdfOptimiserStats(args); 38 | stats.Run(); 39 | } 40 | 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Toolkit/rdfOptStats/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Toolkit/rdfOptStats/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Toolkit/rdfQuery/Program.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Query 32 | { 33 | public class Program 34 | { 35 | static void Main(string[] args) 36 | { 37 | Console.OutputEncoding = Encoding.UTF8; 38 | if (args.Length >= 1 && args[0].Equals("-roqet")) 39 | { 40 | RoqetQuery roqet = new RoqetQuery(); 41 | roqet.RunQuery(args.Skip(1).ToArray()); 42 | } 43 | else 44 | { 45 | RdfQuery rdfQuery = new RdfQuery(); 46 | rdfQuery.RunQuery(args); 47 | } 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Toolkit/rdfQuery/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Toolkit/rdfQuery/database_table.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/rdfQuery/database_table.ico -------------------------------------------------------------------------------- /Toolkit/rdfQuery/kexi_kexi.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/rdfQuery/kexi_kexi.ico -------------------------------------------------------------------------------- /Toolkit/rdfQuery/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Toolkit/rdfServer/RdfServerPathResolver.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using VDS.RDF.Configuration; 28 | using VDS.Web; 29 | 30 | namespace VDS.RDF.Utilities.Server 31 | { 32 | /// 33 | /// A Path Resolver for helping in the loading of Configuration Files which is aware of the VDS.Web.Server architecture 34 | /// 35 | class RdfServerPathResolver 36 | : IPathResolver 37 | { 38 | private HttpServer _server; 39 | 40 | /// 41 | /// Creates a new Path resolver for the Server 42 | /// 43 | /// Server 44 | public RdfServerPathResolver(HttpServer server) 45 | { 46 | this._server = server; 47 | } 48 | 49 | /// 50 | /// Resolves a Path 51 | /// 52 | /// Path to resolve 53 | /// Resolved Path 54 | public string ResolvePath(string path) 55 | { 56 | if (this._server == null) 57 | { 58 | return path; 59 | } 60 | else 61 | { 62 | String temp = this._server.MapPath(path); 63 | if (temp == null) throw new DotNetRdfConfigurationException("Path '" + path + "' is invalid as a Path for rdfServer. Paths may not go outside the base directory unless they refer to a Virtual Directory"); 64 | return temp; 65 | } 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Toolkit/rdfServer/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Toolkit/rdfServer/default.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: . 2 | @prefix rdfs: . 3 | @prefix dnr: . 4 | 5 | # This is the default configuration file for rdfServer 6 | # You need to specify a HttpHandler with dnr:type VDS.RDF.Web.SparqlServer 7 | # You can then specify a Query and/or an Update Processor 8 | # You may specify a Protocol Processor as well though this is currently 9 | # not supported under rdfServer (will be supported in future) 10 | 11 | a dnr:HttpHandler ; 12 | dnr:type "VDS.RDF.Web.SparqlServer" ; 13 | dnr:queryProcessor _:qProc ; 14 | dnr:updateProcessor _:uProc ; 15 | dnr:protocolProcessor _:pProc . 16 | 17 | _:qProc a dnr:SparqlQueryProcessor ; 18 | dnr:type "VDS.RDF.Query.LeviathanQueryProcessor" ; 19 | dnr:usingStore _:store . 20 | 21 | _:uProc a dnr:SparqlUpdateProcessor ; 22 | dnr:type "VDS.RDF.Update.LeviathanUpdateProcessor" ; 23 | dnr:usingStore _:store . 24 | 25 | _:pProc a dnr:SparqlHttpProtocolProcessor ; 26 | dnr:type "VDS.RDF.Update.Protocol.LeviathanProtocolProcessor" ; 27 | dnr:usingStore _:store . 28 | 29 | _:store a dnr:TripleStore ; 30 | dnr:type "VDS.RDF.TripleStore" . -------------------------------------------------------------------------------- /Toolkit/rdfServer/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Toolkit/rdfServerGUI/Program.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Windows.Forms; 28 | 29 | namespace VDS.RDF.Utilities.Server.GUI 30 | { 31 | /// 32 | /// Entry point for the Server GUI 33 | /// 34 | static class Program 35 | { 36 | /// 37 | /// The main entry point for the application. 38 | /// 39 | [STAThread] 40 | static void Main() 41 | { 42 | Application.EnableVisualStyles(); 43 | Application.SetCompatibleTextRenderingDefault(false); 44 | Application.Run(new fclsServerManager()); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Toolkit/rdfServerGUI/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | //------------------------------------------------------------------------------ 27 | // 28 | // This code was generated by a tool. 29 | // Runtime Version:4.0.30319.239 30 | // 31 | // Changes to this file may cause incorrect behavior and will be lost if 32 | // the code is regenerated. 33 | // 34 | //------------------------------------------------------------------------------ 35 | 36 | namespace VDS.RDF.Utilities.Server.GUI.Properties { 37 | 38 | 39 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 40 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 41 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 42 | 43 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 44 | 45 | public static Settings Default { 46 | get { 47 | return defaultInstance; 48 | } 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Toolkit/rdfServerGUI/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Toolkit/rdfServerGUI/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Toolkit/rdfServerGUI/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Toolkit/rdfServerGUI/servercontrol.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Server Control 5 | 6 | 7 |

Use the following buttons to control the server if the server was started with RESTful Control enabled

8 |
9 | 10 |
11 |
12 | 13 |
14 | 15 | -------------------------------------------------------------------------------- /Toolkit/rdfWebDeploy/Extract.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Web.Deploy 32 | { 33 | class Extract 34 | { 35 | 36 | public void RunExtract(String[] args) 37 | { 38 | if (args.Length < 3) 39 | { 40 | Console.Error.WriteLine("rdfWebDeploy: Error: 3 Arguments are required in order to use the -extract mode"); 41 | return; 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Toolkit/rdfWebDeploy/Program.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace VDS.RDF.Utilities.Web.Deploy 32 | { 33 | class Program 34 | { 35 | static void Main(string[] args) 36 | { 37 | RdfWebDeploy deployment = new RdfWebDeploy(); 38 | deployment.RunDeployment(args); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Toolkit/rdfWebDeploy/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Toolkit/rdfWebDeploy/ark.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/rdfWebDeploy/ark.ico -------------------------------------------------------------------------------- /Toolkit/rdfWebDeploy/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Toolkit/rdfWebDeploy/world_go.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/rdfWebDeploy/world_go.ico -------------------------------------------------------------------------------- /Toolkit/soh/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SPARQL over HTTP")] 9 | [assembly: AssemblyDescription("A command line utility for accessing all SPARQL features from a single tool")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Visual Design Studios")] 12 | [assembly: AssemblyProduct("soh")] 13 | [assembly: AssemblyCopyright("Copyright © dotNetRDF Project 2011-21")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("6e2f4467-62ad-4473-be32-0331ddd59f20")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.13.0")] 35 | [assembly: AssemblyVersion("1.0.13.0")] 36 | [assembly: AssemblyFileVersion("1.0.13.0")] 37 | -------------------------------------------------------------------------------- /Toolkit/soh/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Toolkit/soh/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Controls/ControlEvents.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using VDS.RDF.Utilities.StoreManager.Connections; 28 | 29 | namespace VDS.RDF.Utilities.StoreManager.Controls 30 | { 31 | /// 32 | /// Event Arguments for Connection Event 33 | /// 34 | public class ConnectedEventArgs 35 | : EventArgs 36 | { 37 | /// 38 | /// Creates a new Connected Event arguments 39 | /// 40 | /// Connection 41 | public ConnectedEventArgs(Connection connection) 42 | { 43 | this.Connection = connection; 44 | } 45 | 46 | /// 47 | /// Gets/Sets the Connection 48 | /// 49 | public Connection Connection 50 | { 51 | get; 52 | private set; 53 | } 54 | } 55 | 56 | /// 57 | /// Delegate for Connected Event 58 | /// 59 | /// Sender 60 | /// Event Arguments 61 | public delegate void Connected(Object sender, ConnectedEventArgs e); 62 | } 63 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Controls/ListViewColumnSorter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections; 28 | using System.Windows.Forms; 29 | 30 | namespace VDS.RDF.Utilities.StoreManager.Controls 31 | { 32 | /// 33 | /// A column sorter for list views 34 | /// 35 | public class ListViewColumnSorter : IComparer 36 | { 37 | private readonly int _column; 38 | private readonly int _modifier = 1; 39 | 40 | public ListViewColumnSorter(int column, SortOrder order) 41 | { 42 | this._column = column; 43 | if (order == SortOrder.Descending) 44 | { 45 | this._modifier = -1; 46 | } 47 | } 48 | 49 | 50 | public int Compare(object x, object y) 51 | { 52 | if (!(x is ListViewItem) || !(y is ListViewItem)) return 0; 53 | ListViewItem a = (ListViewItem) x; 54 | ListViewItem b = (ListViewItem) y; 55 | 56 | int numA, numB; 57 | if (Int32.TryParse(a.SubItems[this._column].Text, out numA) && Int32.TryParse(b.SubItems[this._column].Text, out numB)) return this._modifier*numA.CompareTo(numB); 58 | return this._modifier*String.Compare(a.SubItems[this._column].Text, b.SubItems[this._column].Text, StringComparison.CurrentCulture); 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Dialogues/CloseConnectionDialogue.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2013 dotNetRDF Project (dotnetrdf-develop@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Windows.Forms; 28 | 29 | namespace VDS.RDF.Utilities.StoreManager.Dialogues 30 | { 31 | public partial class CloseConnectionDialogue : Form 32 | { 33 | public CloseConnectionDialogue() 34 | { 35 | InitializeComponent(); 36 | } 37 | 38 | /// 39 | /// Whether all windows should be closed 40 | /// 41 | public bool ForceClose { get; private set; } 42 | 43 | private void btnCloseWindow_Click(object sender, EventArgs e) 44 | { 45 | this.ForceClose = false; 46 | this.DialogResult = DialogResult.OK; 47 | this.Close(); 48 | } 49 | 50 | private void btnCloseAll_Click(object sender, EventArgs e) 51 | { 52 | this.ForceClose = true; 53 | this.DialogResult = DialogResult.OK; 54 | this.Close(); 55 | } 56 | 57 | private void btnCancel_Click(object sender, EventArgs e) 58 | { 59 | this.DialogResult = DialogResult.Cancel; 60 | this.Close(); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Dialogues/CopyMoveDialogue.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Windows.Forms; 28 | using VDS.RDF.Utilities.StoreManager.Connections; 29 | using VDS.RDF.Utilities.StoreManager.Tasks; 30 | 31 | namespace VDS.RDF.Utilities.StoreManager.Dialogues 32 | { 33 | partial class CopyMoveDialogue : Form 34 | { 35 | public CopyMoveDialogue(CopyMoveDragInfo info, Connection target) 36 | { 37 | InitializeComponent(); 38 | 39 | this.lblConfirm.Text = String.Format(this.lblConfirm.Text, info.SourceUri, info.Source, target); 40 | } 41 | 42 | public bool IsCopy 43 | { 44 | get; 45 | private set; 46 | } 47 | 48 | public bool IsMove 49 | { 50 | get; 51 | private set; 52 | } 53 | 54 | private void btnCopy_Click(object sender, EventArgs e) 55 | { 56 | this.IsCopy = true; 57 | this.DialogResult = DialogResult.OK; 58 | this.Close(); 59 | } 60 | 61 | private void btnMove_Click(object sender, EventArgs e) 62 | { 63 | this.IsMove = true; 64 | this.DialogResult = DialogResult.OK; 65 | this.Close(); 66 | } 67 | 68 | private void btnCancel_Click(object sender, EventArgs e) 69 | { 70 | this.DialogResult = DialogResult.Cancel; 71 | this.Close(); 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Dialogues/CopyMoveRenameGraphDialogue.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Windows.Forms; 28 | using VDS.RDF.Utilities.StoreManager.Properties; 29 | 30 | namespace VDS.RDF.Utilities.StoreManager.Dialogues 31 | { 32 | public partial class CopyMoveRenameGraphForm : Form 33 | { 34 | public CopyMoveRenameGraphForm(String task) 35 | { 36 | InitializeComponent(); 37 | this.Text = String.Format(this.Text, task); 38 | } 39 | 40 | public Uri Uri 41 | { 42 | get; 43 | private set; 44 | } 45 | 46 | private void btnOK_Click(object sender, EventArgs e) 47 | { 48 | try 49 | { 50 | this.Uri = new Uri(this.txtUri.Text); 51 | this.DialogResult = DialogResult.OK; 52 | this.Close(); 53 | } 54 | catch (UriFormatException uriEx) 55 | { 56 | MessageBox.Show(string.Format(Resources.InvalidUri_Text, uriEx.Message), Resources.InvalidUri_Title, MessageBoxButtons.OK, MessageBoxIcon.Error); 57 | } 58 | } 59 | 60 | private void btnCancel_Click(object sender, EventArgs e) 61 | { 62 | this.DialogResult = DialogResult.Cancel; 63 | this.Close(); 64 | } 65 | 66 | private void CopyMoveRenameGraphForm_Load(object sender, EventArgs e) 67 | { 68 | this.txtUri.SelectAll(); 69 | this.txtUri.Focus(); 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Dialogues/EntityQueryGeneratorDialogue.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2013 dotNetRDF Project (dotnetrdf-develop@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Windows.Forms; 28 | using VDS.RDF.Utilities.StoreManager.Properties; 29 | 30 | namespace VDS.RDF.Utilities.StoreManager.Dialogues 31 | { 32 | public partial class EntityQueryGeneratorDialogue : Form 33 | { 34 | public EntityQueryGeneratorDialogue(String query) 35 | { 36 | InitializeComponent(); 37 | this.txtCurrentQuery.Text = query.Replace("\n", "\r\n"); 38 | } 39 | 40 | private void btnCancel_Click(object sender, EventArgs e) 41 | { 42 | this.DialogResult = DialogResult.Cancel; 43 | this.Close(); 44 | } 45 | 46 | private void btnGenerate_Click(object sender, EventArgs e) 47 | { 48 | this.DialogResult = DialogResult.OK; 49 | this.MinPredicateUsageLimit = (int) this.numValuesPerPredicateLimit.Value; 50 | this.QueryString = this.txtCurrentQuery.Text; 51 | this.Close(); 52 | } 53 | 54 | /// 55 | /// Gets the minimum number of times a predicate must be used to be included in the generated query 56 | /// 57 | public int MinPredicateUsageLimit { get; private set; } 58 | 59 | /// 60 | /// Gets the Query String the user entered 61 | /// 62 | public String QueryString { get; private set; } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Dialogues/RenameConnectionDialogue.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2013 dotNetRDF Project (dotnetrdf-develop@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Windows.Forms; 28 | using VDS.RDF.Utilities.StoreManager.Connections; 29 | 30 | namespace VDS.RDF.Utilities.StoreManager.Dialogues 31 | { 32 | public partial class RenameConnectionDialogue : Form 33 | { 34 | public RenameConnectionDialogue(Connection connection) 35 | { 36 | InitializeComponent(); 37 | this.Connection = connection; 38 | this.Text = String.Format(this.Text, this.Connection.Name); 39 | } 40 | 41 | private void btnCancel_Click(object sender, EventArgs e) 42 | { 43 | this.Close(); 44 | } 45 | 46 | private Connection Connection { get; set; } 47 | 48 | private void btnRename_Click(object sender, EventArgs e) 49 | { 50 | this.Connection.Name = String.IsNullOrEmpty(this.txtName.Text) ? null : this.txtName.Text; 51 | this.Close(); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Dialogues/StringResultDialogue.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2013 dotNetRDF Project (dotnetrdf-develop@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Windows.Forms; 28 | 29 | namespace VDS.RDF.Utilities.StoreManager.Dialogues 30 | { 31 | public partial class StringResultDialogue : Form 32 | { 33 | private readonly Control _targetControl; 34 | 35 | public StringResultDialogue(String title, String result, Control control, String controlDescription) 36 | { 37 | InitializeComponent(); 38 | this.Text = String.Format(this.Text, title); 39 | this.txtResult.Text = result; 40 | this._targetControl = control; 41 | this.btnCopyToControl.Text = String.Format(this.btnCopyToControl.Text, controlDescription); 42 | this.btnCopyToControl.Enabled = this._targetControl != null; 43 | } 44 | 45 | public StringResultDialogue(String title, String result) 46 | : this(title, result, null, "Editor") { } 47 | 48 | private void btnCopyToControl_Click(object sender, EventArgs e) 49 | { 50 | if (this._targetControl == null) return; 51 | this._targetControl.Text = this.txtResult.Text; 52 | this.Close(); 53 | } 54 | 55 | private void btnCopyToClipboard_Click(object sender, EventArgs e) 56 | { 57 | Clipboard.SetText(this.txtResult.Text, TextDataFormat.Text); 58 | this.Close(); 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Extensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | 28 | namespace VDS.RDF.Utilities.StoreManager 29 | { 30 | /// 31 | /// Extension Methods 32 | /// 33 | internal static class Extensions 34 | { 35 | /// 36 | /// Gets the Safe string form of an object 37 | /// 38 | /// Object 39 | /// The result of calling ToString() on non-null objects and String.Empty otherwise 40 | internal static String ToSafeString(this Object obj) 41 | { 42 | return (obj != null ? obj.ToString() : String.Empty); 43 | } 44 | 45 | /// 46 | /// Gets the Safe string form of a URI 47 | /// 48 | /// URI 49 | /// Either the AbolsuteUri or an empty string 50 | internal static String ToSafeString(this Uri u) 51 | { 52 | return (u != null ? u.AbsoluteUri : String.Empty); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Forms/InvalidTemplateForm.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Windows.Forms; 29 | 30 | namespace VDS.RDF.Utilities.StoreManager.Forms 31 | { 32 | public partial class InvalidTemplateForm : Form 33 | { 34 | public InvalidTemplateForm(List errors) 35 | { 36 | InitializeComponent(); 37 | 38 | this.lstErrors.DataSource = errors; 39 | } 40 | 41 | private void btnOK_Click(object sender, EventArgs e) 42 | { 43 | this.Close(); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Forms/ManageConnectionsForm.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2013 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System.Windows.Forms; 27 | using VDS.RDF.Utilities.StoreManager.Connections; 28 | 29 | namespace VDS.RDF.Utilities.StoreManager.Forms 30 | { 31 | public partial class ManageConnectionsForm : Form 32 | { 33 | public ManageConnectionsForm() 34 | { 35 | InitializeComponent(); 36 | } 37 | 38 | public IConnectionsGraph ActiveConnections 39 | { 40 | get { return this.lvwActive.DataSource; } 41 | set { this.lvwActive.DataSource = value; } 42 | } 43 | 44 | public IConnectionsGraph RecentConnections 45 | { 46 | get { return this.lvwRecent.DataSource; } 47 | set { this.lvwRecent.DataSource = value; } 48 | } 49 | 50 | public IConnectionsGraph FavouriteConnections 51 | { 52 | get { return this.lvwFavourite.DataSource; } 53 | set { this.lvwFavourite.DataSource = value; } 54 | } 55 | 56 | private void btnClose_Click(object sender, System.EventArgs e) 57 | { 58 | this.Close(); 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /Toolkit/storemanager/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | False 7 | 8 | 9 | 100 10 | 11 | 12 | True 13 | 14 | 15 | True 16 | 17 | 18 | False 19 | 20 | 21 | 9 22 | 23 | 24 | False 25 | 26 | 27 | True 28 | 29 | 30 | False 31 | 32 | 33 | False 34 | 35 | 36 | False 37 | 38 | 39 | False 40 | 41 | 42 | -------------------------------------------------------------------------------- /Toolkit/storemanager/Tasks/CopyMoveDragInfo.cs: -------------------------------------------------------------------------------- 1 | /* 2 | dotNetRDF is free and open source software licensed under the MIT License 3 | 4 | ----------------------------------------------------------------------------- 5 | 6 | Copyright (c) 2009-2012 dotNetRDF Project (dotnetrdf-developer@lists.sf.net) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is furnished 13 | to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | */ 25 | 26 | using System; 27 | using VDS.RDF.Utilities.StoreManager.Connections; 28 | using VDS.RDF.Utilities.StoreManager.Forms; 29 | 30 | namespace VDS.RDF.Utilities.StoreManager.Tasks 31 | { 32 | /// 33 | /// Information for doing copy/move via drag/drop 34 | /// 35 | class CopyMoveDragInfo 36 | { 37 | /// 38 | /// Creates a new Copy/Move infor 39 | /// 40 | /// Drag Source 41 | /// Source Graph URI 42 | public CopyMoveDragInfo(StoreManagerForm form, String sourceUri) 43 | { 44 | this.Form = form; 45 | this.Source = form.Connection; 46 | this.SourceUri = sourceUri; 47 | } 48 | 49 | /// 50 | /// Drag Source Form 51 | /// 52 | public StoreManagerForm Form 53 | { 54 | get; 55 | private set; 56 | } 57 | 58 | /// 59 | /// Drag source connection 60 | /// 61 | public Connection Source 62 | { 63 | get; 64 | private set; 65 | } 66 | 67 | /// 68 | /// Gets the Source Graph URI 69 | /// 70 | public String SourceUri 71 | { 72 | get; 73 | private set; 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /Toolkit/storemanager/database_gear.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/storemanager/database_gear.ico -------------------------------------------------------------------------------- /Toolkit/storemanager/file-manager.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/storemanager/file-manager.ico -------------------------------------------------------------------------------- /Toolkit/storemanager/folder_explore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/storemanager/folder_explore.png -------------------------------------------------------------------------------- /Toolkit/storemanager/folder_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotnetrdf/dotNetRDF.Toolkit/a9871dd9bdc1aa364b31846ec40705e1f04d7818/Toolkit/storemanager/folder_star.png -------------------------------------------------------------------------------- /Toolkit/storemanager/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Toolkit/storemanager/plugins/Store Manager Plugins.txt: -------------------------------------------------------------------------------- 1 | Store Manager Plugins 2 | ===================== 3 | 4 | Store Manager now allows you to plugin new Triple Stores very easily with minimal coding effort and without 5 | any need for you to edit Store Manager's codebase yourself. 6 | 7 | To do this you will need to implement the following interfaces in your own assembly: 8 | 9 | IStorageProvider 10 | - Can be found under VDS.RDF.Storage in dotNetRDF.dll 11 | - This is the interface which actually provides the connectivity between dotNetRDF and a Triple Store 12 | 13 | IConnectionDefinition 14 | - Can be found under VDS.RDF.Utilities.StoreManager.Connections in StoreManager.Core.dll 15 | - This interface is used to specify available connection settings and instantiate connections 16 | - Essentially is just a class that implements the interface and annotates its properties 17 | with the ConnectionAttribute 18 | 19 | Then simply drop your assembly as a DLL into this folder, restart Store Manager or go to Help > About and 20 | hit the rescan button and it will automatically detect the available Triple Stores from your assembly. -------------------------------------------------------------------------------- /Toolkit/storemanager/sparql.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | font-family: "Verdana"; 4 | font-size: 10pt; 5 | } 6 | 7 | TABLE 8 | { 9 | background: #eeeeee; 10 | } 11 | 12 | TR 13 | { 14 | vertical-align: top; 15 | } 16 | 17 | 18 | TD 19 | { 20 | background: #ffffff; 21 | padding: 3px; 22 | } 23 | 24 | TH 25 | { 26 | background: #cccccc; 27 | padding: 2px; 28 | } 29 | 30 | A 31 | { 32 | color: #666666; 33 | } 34 | 35 | A.datatype { 36 | font-size: smaller; 37 | vertical-align: super; 38 | } 39 | 40 | H3 41 | { 42 | background: #cccccc; 43 | padding: 5px; 44 | font-weight: normal; 45 | } -------------------------------------------------------------------------------- /ToolkitInstaller/EULA.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang2057\deflangfe1041{\fonttbl{\f0\fswiss\fprq2\fcharset0 Calibri;}} 2 | {\*\generator Riched20 10.0.19041}{\*\mmathPr\mdispDef1\mwrapIndent1440 }\viewkind4\uc1 3 | \pard\widctlpar\sa160\sl252\slmult1\ul\f0\fs22\lang9 dotNetRDF is free and open source software licensed under the MIT License\par 4 | 5 | \pard\nowidctlpar\sa200\sl276\slmult1\ulnone\par 6 | Copyright (c) 2009-2021 dotNetRDF Project\par 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\par 8 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\par 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\par 10 | } 11 | -------------------------------------------------------------------------------- /ToolkitInstaller/StableIds.xsl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | _ 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | _ 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | install: 2 | - choco install gitversion.portable -y 3 | 4 | before_build: 5 | - nuget restore 6 | - ps: gitversion /l console /output buildserver /updateassemblyinfo 7 | 8 | after_build: 9 | - cmd: 7z a dotNetRDFToolkitInstaller-%GitVersion_SemVer%.zip %APPVEYOR_BUILD_FOLDER%\ToolkitInstaller\bin\Release\*.* 10 | - cmd: 7z a dotNetRDFToolkit-noInstaller-%GitVersion_SemVer%.zip %APPVEYOR_BUILD_FOLDER%\ToolkitInstaller\packages\* -xr!info 11 | - cmd: 7z a dotNetRDFToolkit-noInstaller-%GitVersion_SemVer%.zip %APPVEYOR_BUILD_FOLDER%\ToolkitInstaller\packages\info\* 12 | 13 | configuration: Release 14 | 15 | artifacts: 16 | - path: dotNetRDFToolkitInstaller-$(GitVersion_SemVer).zip 17 | - path: dotNetRDFToolkit-noInstaller-$(GitVersion_SemVer).zip 18 | 19 | deploy: 20 | - provider: GitHub 21 | description: 'dotNetRDF.Toolkit $(GitVersion_SemVer)' 22 | auth_token: 23 | secure: KMC9yx8cu4fyzvtDnRIcmtowLKx9hpAwJhIyz6E4LYj79Rp1BiA7QXuyUZo7xUzm 24 | on: 25 | appveyor_repo_tag: true 26 | artifact: dotNetRDFToolkitInstaller-$(GitVersion_SemVer).zip, dotNetRDFToolkit-noInstaller-$(GitVersion_SemVer).zip 27 | --------------------------------------------------------------------------------