Page MenuHomeSoftware Heritage

Metadata Indexer for NuGet (.nuspec)
Closed, MigratedEdits Locked

Description

An example nuget.config file:

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
    <metadata>
        <id>sample</id>
        <version>1.2.3</version>
        <authors>Kim Abercrombie, Franck Halmaert</authors>
        <description>Sample exists only to show a sample .nuspec file.</description>
        <language>en-US</language>
        <projectUrl>http://xunit.codeplex.com/</projectUrl>
        <license type="expression">MIT</license>
        <dependencies>
            <dependency id="another-package" version="3.0.0" />
            <dependency id="yet-another-package" version="1.0.0" />
        </dependencies>
    </metadata>
    <files>
        <file src="bin\Debug\*.dll" target="lib" />
    </files>
</package>

In codemeta:

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "type": "SoftwareSourceCode",
  "author": [
    {
      "type": "Person",
      "name": "Kim Abercrombie"
    },
    {
      "type": "Person",
      "name": "Franck Halmaert"
    }
  ],
  "description": "Sample exists only to show a sample .nuspec file.",
  "license": "https://spdx.org/licenses/MIT",
  "url": "http://xunit.codeplex.com/",
  "version": "1.2.3"
}

Event Timeline

VickyMerzOwn created this task.
VickyMerzOwn created this object in space S1 Public.
vlorentz renamed this task from Metadata Indexer for NuGet (nuget.config) to Metadata Indexer for NuGet (.nuspec).Jul 20 2022, 9:35 AM

You can translate http://schema.org/language too. It's uncommon enough to be missing from Codemeta, but it doesn't mean we can't use it.

And please use https://json-ld.org/playground/ to check your JSON-LD documents; there are several mistakes in your codemeta example that make it invalid. (also, because of an an issue with doi.org you need to replace https://doi.org/10.5063/schema/codemeta-2.0 with https://raw.githubusercontent.com/codemeta/codemeta/2.0/codemeta.jsonld when using https://json-ld.org/playground/ ; but you can ignore it otherwise)

Please keep "@context": "https://doi.org/10.5063/schema/codemeta-2.0" though. And you can remove softwareRequirements, as it is an empty object now