OSLC4Net.Core.Query 0.3.0-alpha

This is a prerelease version of OSLC4Net.Core.Query.
dotnet add package OSLC4Net.Core.Query --version 0.3.0-alpha
NuGet\Install-Package OSLC4Net.Core.Query -Version 0.3.0-alpha
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OSLC4Net.Core.Query" Version="0.3.0-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OSLC4Net.Core.Query --version 0.3.0-alpha
#r "nuget: OSLC4Net.Core.Query, 0.3.0-alpha"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install OSLC4Net.Core.Query as a Cake Addin
#addin nuget:?package=OSLC4Net.Core.Query&version=0.3.0-alpha&prerelease

// Install OSLC4Net.Core.Query as a Cake Tool
#tool nuget:?package=OSLC4Net.Core.Query&version=0.3.0-alpha&prerelease

Welcome to the OSLC4Net project

CI Discourse status Gitter

What is OSLC4NET?

OSLC4Net is an SDK and sample applications to help the .NET community to adopt OSLC (Open Services for Lifecycle Collaboration) and build OSLC-compliant tools.

The current content of the project is the source for a .NET SDK written in C#. The SDK allows developers to create OSLC providers or consumers by adding OSLC annotations to .NET objects to allow them to be represented as OSLC resources. It includes a library based on the dotNetRDF package which assists with representing these resources as RDF/XML and which helps parse RDF/XML documents into OSLC .NET objects.

The ASP.NET MVC 4 library can be used to assist with creating consumer REST requests or to help create a provider which can process OSLC REST requests.

The project currently contains the SDK and a sample OSLC Change Management client. A sample provider using the SDK is one of the top priorities for the project.

Getting started

If you do not have a .NET development environment, start by downloading Visual Studio 2017 Community and SQL Server 2016 Express. Make sure to install ASP.NET-related options for Visual Studio and LocalDB for SQL Server.

Running the sample StockQuote provider

OSLC4Net.StockQuoteSample is a sample OSLC provider which implements one resource type, a StockQuote. This resource is not defined by an OSLC specification, it shows how OSLC4Net can be used to create an experimental OSLC provider.

  1. Build the OSLC4Net_SDK\OSLC4Net.Core.sln solution
  2. Right click the OSLC4Net.StockQuoteSample project and run it via Debug->Start new instance

You'll see a web page created - that is currently just a skeleton provided by ASP.NET. You can close it. Try performing a GET request on the follwing URLs in a tool like Poster or Advanced REST Client (make sure to set the Accept header to application/rdf+xml:

  • http://localhost:7077/api/stockquote - returns all StockQuotes
  • http://localhost:7077/api/stockquote?getShape=true - returns the StockQuote OSLC resource shape
  • http://localhost:7077/api/stockquote/nasdaq_goog - returns an individual StockQuote

A request to the first URL using Fiddler should have the following response:

alternate text is missing from this package README image

More information on OSLC

  • See the OSLC site for more details on OSLC specifications and community activities.
  • See the Eclipse Lyo site for information on OSLC SDKs and samples for other technologies.

OSLC4Net License

OSLC4Net is licensed under the Eclipse Public License

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OSLC4Net.Core.Query:

Package Downloads
OSLC4Net.Client

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.0-alpha 95 4/29/2023