Questions tagged [curie]

curie is intended for questions related to using URL relations and the DRY principle to create semantic data or semantic markup.

A CURIE is a replacement for a QName in non-XML languages which provides namespacing functionality for describing URL relations using shorthand based on prefix/suffix mappings in semantic data (RDFa, JSON-LD, YAML, etc.) without relying on XML namespaces.

For example:

If in RDF I want to use the Dublin Core creator property, then all I need do is this:

dc:creator

and provided that I have the dc namespace prefix defined as http://purl.org/dc/elements/1.1/, I have effectively represented the following URI:

http://purl.org/dc/elements/1.1/creator

In HTML it would look like this:

<div prefix="dc: http://purl.org/DC/elements/1.0"> 
 <a property="dc:creator" href="http://example.com">IANA</a>
</div>

References

8 questions
15
votes
2 answers

Can anyone provide a good explanation of CURIEs and how to use them?

I've seen CURIEs described in the HAL specification. At first glance, it looks like a way to provide templating for URIs. However, I also see it prominently mentioned that it can be used to access documentation on a rel. Which one is it? Is it…
Vivin Paliath
  • 94,126
  • 40
  • 223
  • 295
1
vote
0 answers

OpenAI fine-tuning training data exceeds the token limit

I am using curie model to fine-tune in Python. Basically, I am passing the training data of form {"prompt":"completion"} and I have 736 prompt-example pairs. My example completions are pretty long - I aim at generating a JSON file based on a…
1
vote
1 answer

Azure Open AI Model Producing Unexpected Response

I have created a fine tuned model with custom dataset using Curie as base model. I am using Azure OpenAI service. The model is trying to produce response with maximum possisble tokens. for example if max_token parameter is set to 200 then the model…
fahad shaikh
  • 593
  • 1
  • 14
  • 29
1
vote
3 answers

Is there a standard way to define CURIEs in HTTP header fields?

Recently, I've designing a RESTful API, and I want to use the Link header field to implement HATEOAS. This is all fine and works without any real problem, but I want to make it easier for the clients of the API. The Link header for example might…
Lucas
  • 10,476
  • 7
  • 39
  • 40
1
vote
1 answer

Curies in Spring HATEOAS

I´m using Spring Boot and HATEOAS to build a REST API and I am struggling with the curie creation. The Spring HATEOAS guide says that in order to automatically insert a curie in the responses, you should do the…
jose_p
  • 624
  • 1
  • 8
  • 12
0
votes
1 answer

Generate Curies using Halcyon.net

Using the Halcyon .NET library (https://github.com/visualeyes/halcyon), I can generate the HAL (http://stateless.co/hal_specification.html) output that I need for my prototype API. However, I would like to add curies in to document additional…
goofballLogic
  • 37,883
  • 8
  • 44
  • 62
0
votes
1 answer

Can a rel that uses a CURIE be used for a single instance of an item and for a collection of those same items?

In my API, I have rels that look like this: For a single item: { ... _links: { ..., "api:activities/activity-resource": { "href": "..." } } } On another resource, I have multiple instances of…
Vivin Paliath
  • 94,126
  • 40
  • 223
  • 295
0
votes
1 answer

Exchanging Spring Hypermedia Resources with HAL+JSON CURIEs via RestTemplate

I am using Spring Framework 4.1.0 and Spring HATEOAS 0.16.0 to develop both a Spring web application and a Spring test client for that application. The test client has a statement like: ResponseEntity> response =…